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); } }
SharedPreferences, read aboutEditText. If you want the data to be saved as you type, read aboutTextWatcher- Flippy