Question: How to get current View of a ViewPager FragmentStatePagerAdapter?
- I have spent almost 24 hours on this and searched everywhere for the fit solutions.
- Get current position is easy, I already got that. This is get current View.
FragmentStatePagerAdapter
is required, notPagerAdapter
.- This solution suggested setTag and findViewWithTag via
instantiateItem(View container, int position)
. This is for PagerAdapter. - However in
FragmentStatePagerAdapter
the instantiateItem has a ViewGroup param not View param:instantiateItem(**ViewGroup** container, int position)
- This solution suggested setTag and findViewWithTag via
So I hope it's not impossible, is it? Please help!