We all know that when using ViewPager
with Fragment
and FragmentPagerAdapter
we get 3 Fragment
loaded: the visible one, and both on each of its sides.
So, if I have 7 Fragments
and I'm iterating through them to see which 3 of them are the ones that are loaded, and by that I mean onCreateView()
has already been called, how can I determine this?
EDIT: The Fragment
doesn't have to be the one that the ViewPager
is showing, just that onCreateView()
has already been called.