How do you save a fragment state?

Thê Hy

New member
How do you save a fragment state?
Answer
The state types mentioned in the table are as follows:
  1. Variables: local variables in the fragment.
  2. View State: any data that is owned by one or more views in the fragment.
  3. SavedState: data inherent to this fragment instance that should be saved in onSaveInstanceState() .
30 нояб. 2020 г.
 

Tìm kiếm

Back
Top