成功解决RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid item position
2016-09-12 17:35
399 查看
1.方案一
2.方案2
I have fixed my issue by using
mRecyclerView.setOnTouchListener( new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { if (mIsRefreshing) { return true; } else { return false; } } } );
2.方案2
I have fixed my issue by using
RecyclerView.swapAdapter(adapter, true)When we set new adapter.
相关文章推荐
- 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 解决方案
- 【转载】Android RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- RecyclerView内部BUG: java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item positio
- 滑动RecyclerView时出现异常: java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 6(offset:6).state:30
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解决方案
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解决方案(转)
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解决方案
- 解决java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 1(offset:1)
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解决方案
- 解决IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter
- java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 的解决方案
- IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter notifyItemRangeRemove
- IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder
- Support v-7 recycler view 出现IndexOutOfBoundsException: Inconsistency detected.异常解决办法。
- Android中IndexOutOfBoundsException: Inconsistency detected. Invalid item position 1(offset:1).state:4
- java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position
- IndexOutOfBoundsException: Inconsistency detected. Invalid item position