Replace Fragment inside a ViewPager
There is another solution that does not need modifying source code of ViewPager and FragmentStatePagerAdapter, and it works with the FragmentPagerAdapter base class used by the author. I’d like to start by answering the author’s question about which ID he should use; it is ID of the container, i.e. ID of the view pager itself. … Read more