java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position
来源:互联网 发布:长沙java招聘信息 编辑:程序博客网 时间:2024/05/19 16:51
报错代码:
java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 10(offset:10).state:15
报错原因
recycle_view等数据源修改后,没及时通知Adapter更新数据
解决办法
在数据源修改后及时通知Adapter更新数据,
例如:
mDataList.clear();//清除数据源
mAdapter.notifyDataSetChanged();//及时通知Adapter更新数据
阅读全文
0 0
- java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 的解决方案
- java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position的一种规避方式
- java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 6(offset:6).state
- 解决java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 1(offset:1)
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid item position 解决方案
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid item position …
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- 成功解决RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- java.lang.IndexOutOfBoundsException: Inconsistency detected.
- java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionVie
- RecyclerView:java.lang.IndexOutOfBoundsException: Invalid item position
- Android中RecyclerView出现Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- Python: joblib.Parallel method in a class 'TypeError : can't pickle instancementhod objects'
- HashTable-----204. Count Primes
- IaaS,,PaaS,SaaS
- 栈和队列
- jackson
- java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- SpringMVCAop编程(对比Struts2的拦截器)
- 通信数据分析平台(二)
- Android 5.0以上 app全局字体替换
- C# 方法异步执行
- MongoCollection::findOne没有办法完成排序的工作
- 【iOS】category重写方法的调用
- Android 即时通讯
- 散列的基础知识