How do you save a fragment state?
Answer
The state types mentioned in the table are as follows:
Answer
The state types mentioned in the table are as follows:
- Variables: local variables in the fragment.
- View State: any data that is owned by one or more views in the fragment.
- SavedState: data inherent to this fragment instance that should be saved in onSaveInstanceState() .