TabLayout ViewPager Not Loading When Using Backstack [duplicate]
This question already has an answer here: Lifecycle of a replaced ViewPager and BackStack? 1 answer I'm using a TabLayout in one of my fragments with a viewPager to switch between two fragments below the tabs. When I click the FAB inside one of the lower fragments, I load a new fragment (for input). However- when I press the BACK button, the TabLayout shows up but WITHOUT either of the lower fragments (represented by the pages). So what am I doing wrong? and is there a better way to be swapping fragments ? and is there a way to press the back button and get back to the viewPager Page that was