I have a ViewPager which contain 2 tabs(2 Separate fragments).
My Second Tab consist of further 6 child tabs (each separate fragment) in another ViewPager.
Now When i switch between 6 child tabs, setUserVisibleHint() method is called.
But when i am present on my any of 6 child tabs(i.e fragment) and i try to switch between the 2 parent tabs. None of the methods like onPause(), onStop(), setUserVisibleHint(), and onHiddenChange() of child tab fragment do not get called.
So can you please help me to know which method will get called of child fragment when i switch between 2 parent tabs?
And if no methods will get called of child fragments, then how can i achieve or know that there is switch between parent tabs and call a method in child fragments?