Trần Yến Nhi
Member
What is difference between ADD and replace fragment?
Answer
One more important difference between add and replace is this: replace removes the existing fragment and adds a new fragment. This means when you press back button the fragment that got replaced will be created with its onCreateView being invoked.
Answer
One more important difference between add and replace is this: replace removes the existing fragment and adds a new fragment. This means when you press back button the fragment that got replaced will be created with its onCreateView being invoked.