首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

[ViewPager] ViewPager中FragmentStatePagerAdapter与FragmentPagerAdapter的区别

2013-12-19 
[ViewPager] ViewPager中FragmentStatePagerAdapter与FragmentPagerAdapter的差异FragmentPagerAdapter mi

[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.

热点排行