Answer the question
In order to leave comments, you need to log in
How to keep data in Fragment when switching?
I have a navigationdrawer, when I switch tabs I want to open fragments with different content, while I need to save the text in the EditText and the CheckBox state, but when I switch, the data disappears. How to save the state of elements in fragments?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question