Open Radzhab opened 9 years ago
@Radzhab You should read more about ViewPager and its working. ViewPager itself handles above case itself. For instance, if you are currently at item n, the FragmentPagerAdapter calls the onCreateView() of fragments at n-1, n and n+1. You can manually override this with setOffscreenPageLimit() Read more at http://developer.android.com/reference/android/support/v4/view/ViewPager.html#setOffscreenPageLimit%28int%29
When i debug project its twice enter in onCreateView. Why twice? But i initialize 4 instance of CheeseListFragment?