Android Scrollable Tabs + Swipe state when swiping

前端 未结 1 1815
臣服心动
臣服心动 2021-02-10 15:36

I\'m trying to make an application with multiple Tabs. For each tab I\'m using different fragments. And when I leaf through tabs the information in them is changing.

How

相关标签:
1条回答
  • 2021-02-10 16:29

    You can cache them all by setting the ViewPagerAdapter like this:

    mViewPager.setOffscreenPageLimit(3);
    
    0 讨论(0)
提交回复
热议问题