How do you hide a fragment?

How do you hide a fragment?
Answer
Don’t mess with the visibility flags of the container – FragmentTransaction. hide/show does that internally for you. Hi you do it by using this approach, all fragments will remain in the container once added initially and then we are simply revealing the desired fragment and hiding the others within the container.
 

Tìm kiếm

Back
Top