The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDat
来源:互联网 发布:看门狗2唐人街数据 编辑:程序博客网 时间:2024/05/21 08:39
解决方法 http://www.cnblogs.com/ivan240/archive/2013/07/23/3208570.html
在初始化ViewPager时,应先给Adapter初始化内容后再将该adapter传给ViewPager,如果不这样处理,在更新adapter的内容后,应该调用一下adapter的notifyDataSetChanged方法,否则在ADT22以上使用会报The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged的异常,具体原因可参考:http://stackoverflow.com/questions/16756131/fragmentstatepageradapter-stopped-working-after-updating-to-adt-22
我的是
TopNewsAdapter 当加载更多时,先notifyDataSetChanged();
0 0
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDat
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDat
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDat
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDat
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDat
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDat
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDat
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDat
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDat
- PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged
- 】The application’s PagerAdapter changed the adapter’s contents without calling PagerAdapter#notifyDa
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter
- 使用ViewPager时报出The application’s PagerAdapter changed the adapter’s contents without calling PagerAda
- The application's PagerAdapter changed the adapter's contents without calling Pagapter
- The application's PagerAdapter changed the adapter's contents without calling notifyDataSetChanged
- ViewPager异步添加数据异常 The application's PagerAdapter changed the adapter's contents without calling Pag
- ViewPager异步添加数据异常 The application's PagerAdapter changed the adapter's contents without calling Pag
- UE4 在C++ 动态生成几何、BSP体、BRUSH ---- MESH_GENERATION
- poj 2718(搜索+剪枝)C语言实现
- 【Codeforces 752 C New Year and Rating】+ 思维
- 一个安卓项目运行在5.0的设备上就会报错
- Unreal Engine 4 —— 使用ProceduralMeshComponent实现模型实时切割
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDat
- MySql+PHP实现分页
- 如何选择文件系统:EXT4、Btrfs 和 XFS
- 在一个无序数组中找到第K个最小或者最大的元素
- 我不要的彷徨
- 数据结构课程设计
- 持续集成的回归测试框架
- javascript中 n--与 --n的区别
- 关于百度地图API定位问题