Update ViewPager dynamically?
When using FragmentPagerAdapter or FragmentStatePagerAdapter, it is best to deal solely with getItem() and not touch instantiateItem() at all. The instantiateItem()–destroyItem()–isViewFromObject() interface on PagerAdapter is a lower-level interface that FragmentPagerAdapter uses to implement the much simpler getItem() interface. Before getting into this, I should clarify that if you want to switch out the actual fragments … Read more