J
J
Just He2017-08-16 11:47:04
Android
Just He, 2017-08-16 11:47:04

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

1 answer(s)
Y
Yuri, 2017-08-16
@YuryBorodkin

Don't answer briefly. the problem is extensive, here is the dock

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question