The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDat
来源:互联网 发布:淘宝运费险漏洞 编辑:程序博客网 时间:2024/05/18 03:40
java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 1, found: 0 Pager id: com.android.camera:id/viewpagerLayout Pager class: class com.android.camera.viewpager.ViewPagerModule Problematic adapter: class com.android.camera.viewpager.AdPageAdapter
意思是在PagerAdatper内容改变时,没有调用对应的notifyDataSetcChanged函数。
原因分析:
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataChanged
修改方法:
在mAdPageAdapter.releaseViews()函数时调用 mAdPageAdapter.notifyDataSetChanged()
if(mAdPageAdapter != null){
mAdPageAdapter.releaseViews();
mAdPageAdapter.notifyDataSetChanged();//add this
mAdPageAdapter = null;
}
关于ViewPager 详细内容可以参考下面这篇:
http://blog.csdn.net/harvic880925/article/details/38487149
意思是在PagerAdatper内容改变时,没有调用对应的notifyDataSetcChanged函数。
原因分析:
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataChanged
修改方法:
在mAdPageAdapter.releaseViews()函数时调用 mAdPageAdapter.notifyDataSetChanged()
if(mAdPageAdapter != null){
mAdPageAdapter.releaseViews();
mAdPageAdapter.notifyDataSetChanged();//add this
mAdPageAdapter = null;
}
关于ViewPager 详细内容可以参考下面这篇:
http://blog.csdn.net/harvic880925/article/details/38487149
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
- JavaScript内存泄露
- 机器周期,指令周期,时钟周期,节拍与晶振
- MySQL数据库SYS CPU高的可能性分析
- binder的机制和原理
- Linux进程地址空间详解
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDat
- 第五周项目1.3-三角形类雏形
- bss,data,text,rodata,堆,栈,常量段
- ubuntu14.04 + opencv3.1 + contrib modules
- linux 分析 目标文件 的命令
- 淘宝API开发系列---淘宝API的测试及使用
- reactNative小demo讲解 对比iOS
- 项目打release时遇到的错误
- 苦逼的淘宝应用开发者