ViewPager in TabFragment is not loading a second time

前端 未结 3 609
别那么骄傲
别那么骄傲 2020-12-12 22:13

I\'m trying to make an app that has a ViewPager in a Fragment that is part of a TabHost. Everything works out fine. I have my tabbar, I can switch

3条回答
  •  轮回少年
    2020-12-12 22:26

    you should use getChildFragmentManager() instead of getFragmentManager() and FragmentStatePagerAdapter() instead of FragmentPagerAdapter().Hope it will be useful for someone.

提交回复
热议问题