Browsed by
Month: November 2015

[Android] – How to solve Fragment in ViewPager not restored after popBackStack ?>

[Android] – How to solve Fragment in ViewPager not restored after popBackStack

Problem   A Fragment is not reattached to its hosting ViewPager after returning from another fragment. Situation One Activity hosting a Fragment whoselayout holds a ViewPager. The ViewPager is populated by a FragmentStateViewPagerAdapter. The single Fragments hosted inside the pager (PageFragment for example) can open sub page lists, containing a new set of pages.