读书人

[ViewPager] ViewPager中FragmentStat

发布时间: 2013-12-19 00:33:34 作者: rapoo

[ViewPager] ViewPager中FragmentStatePagerAdapter与FragmentPagerAdapter的差异
FragmentPagerAdapter might suit you well. Also, keep in mind that ViewPager by default will load 3 fragments into memory. The first Adapter might destroy View hierarchy and re load it when needed, the second Adapter only saves the state of the Fragment and completely destroys it, if the user then comes back to that page, the state is retrieved.

读书人网 >移动开发

热点推荐