Android Studio – How to pause a fragment in ViewPager + TabLayout when a different tab is selected?
Right now I have a tablayout with a ViewPager + adapter below it. I want to pause a fragment when a different tab is selected (not destroy/pop it, just pause it) and resume it when the fragment's tab is selected.…