防止ViewPager中的Fragment被销毁

pager.setOffscreenPageLimit(2);  

 

就可以让ViewPager多缓存一个页面

posted on 2014-05-26 10:22  jiezzy  阅读(186)  评论(0)    收藏  举报