I am creating an app that uses a navigation drawer in its main activity. in the drawer the user can navigate through 8 different fragments. I am currently using
fragmentTransaction.replace(R.id.container,MyFragment)
to navigate through the fragments but it is not the best for the user experience because it reloads the fragments each time and the navigation drawer sliding is not fluid. I tried using
fragmentTransaction.add(R.id.container,MyFragment)
and then hiding all others fragment but it becomes confusing and it does not work very well especially when a fragment is called from another fragment. is there a way to make the navigation more fluid without the need to reload the fragment each time it is selected?