java - Keep EditText Values after switching layouts -


i have application 2 layouts using same activity-class. in second layout edittexts, when type in , switch main-layout , there second-layout, value of edittexts gone.

i switch layouts using setcontentview(r.layout.[layoutname]);

how can switch layouts without using values?

don't use layouts. use fragments instead.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -