There is a table with the data already prepared. How to implement their editing? So that they are still preserved

<TableRow android:padding="5dp"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:text="15:35" android:textAppearance="?android:attr/textAppearanceMedium" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:text="ПиОА лаб" android:textAppearance="?android:attr/textAppearanceMedium" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:text="8216" android:textAppearance="?android:attr/textAppearanceMedium" /> </TableRow> 

In the activation of this layer:

 package info.moralno.leti; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class Friday1 extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_friday1); } } 
  • where were they kept? ... where? How are you going to get the table and text fields without id elements? what event you want to save them? - Mikhail Rebrov
  • This is a table with a schedule of pairs and audiences. I made the Editing of these lines, but after switching to another activation, they disappear. - Anton Semenov
  • Author, learn how to work with SharedPreferences , read about EditText . If you want the data to be saved as you type, read about TextWatcher - Flippy
  • Thanks for the advice - Anton Semenov
  • one
    if you have very little data, as in the example, then SharedPreferences. If in the future there will be an expansion | increase in data, then you need to work with SQLite - database - Sviat Volkov

0