View pager and fragment lifecycle

后端 未结 7 1035
滥情空心
滥情空心 2020-12-02 14:09

I have a ViewPager that loads three pages at a time. If I swipe from page 1 to page 2 then to 3, the first page(fragment) goes to onPause(). Then, if I swipe t

相关标签:
7条回答
  • 2020-12-02 15:08

    user method pager.setOffscreenPageLimit(numbr) to set how many fragments you want in stack to be hold.

    0 讨论(0)
提交回复
热议问题