When to use the attach and detach methods of FragmentTransaction
I think it is better to have a look at definition of Detach and Remove in FragmentTransaction Documentation to understand what is going on. Detach Detach the given fragment from the UI. This is the same state as when it is put on the back stack: the fragment is removed from the UI, however its … Read more