FragmentPagerAdapter is not removing items (Fragments) correctly

前端 未结 9 1356
别跟我提以往
别跟我提以往 2021-01-30 01:30

I have implemented the FragmentPagerAdapter and and using a List to hold all fragments for my ViewPager to display. On

9条回答
  •  渐次进展
    2021-01-30 02:26

    Maybe this answer helps you.

    Use FragmentStatePagerAdapter instead of FragmentPagerAdapter.

    Because FragmentPagerAdapter does not destory the views. For more information read this answer.

提交回复
热议问题