- 博客(2)
- 收藏
- 关注
原创 解决ViewPager+Fragment预加载问题
我们知道Viewpager +Fragment 在很多项目被使用到,在默认情况下ViewPager 是默认预加载下一个Fragment的,就算设置setOffscreenPageLimit(0);它还是预加载下一个Fragment,如果两个Fragment都有网络请求时,都会同时触发了,这样不是我们想要的,我们一般都希望哪个Fragment触发显示时,才发起网络请求。这里有两个解决方法:1,自己写一
2016-07-26 14:53:04
404
原创 ListView多选批量删除
//activity_main.xml布局 xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" >
2014-01-07 17:42:28
704
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人