What is difference between ADD and replace fragment?

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.
 

Tìm kiếm

Back
Top