I have 4 fragments in my viewpager and each fragment is shown in each tab and I have 4 tabs. When I click my third tab or swipe to third tab, I find that, the fourth fragment's onresume method is executed, everytime I swipe through fragments, I see that the next page's on resume is executed.
I only want to execute selected fragment's on resume, not the fragment next to it, I searched a lot, but I cannot find a way to do it, is there a way to do it ? thank you