android - Should we add fragment to framelayout before calling replace method? -


i'm sorry, atm can't test code. have question. how should work fragment manager? got error when trying add fragmenta, fragmentb, , again a. got error : fragment added. , here question: should call transaction.add @ launch , replace others fragments or shouldn't. attention , sorry english, not native language

you can add if want on first launch can use .replace if there isn't fragment loading frame , still work.


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? -