I am trying to use BottomNavigatioView in my MainActivity and when on clicking a tab in the bottom navigation, the new fragment replaces the previous one, which takes the previous one to the onDestroyView state.
How can we make all the fragments in the onResume state, regardless of whether they are or not visible on the FrameLayout.