Skip to content
Advertisement

Tag: fragmentstateadapter

Issue on implementing ViewPager2 with FragmentStateAdapter

I am from ViewPager with FragmentPagerAdapter which has a very straight forward implementation like this. Parent Fragment Android recommends moving away from ViewPager and deprecating the beloved FragmentPagerAdapter, now I am trying to work with ViewPager2 with FragmentStateAdapter but having a lot of confusion and difficulty in terms of how it works. These is my implementation Normally we could just

Advertisement