You should always add, remove and replace your fragments problematically. As such I suggest you replace your “LoginFragment” fragments with containers such as FrameLayout. I had to use; instead of;. This is the code I got it to work with:

setFragment method called from displayView method,

And to set it (from the navbar onNavigationItemSelected(), you do this:


Leave a Comment