一、java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder
1.bug原因:請求刷新數據時,調用了list.clear(),同時滑動了RecyclerView
2.問題解決:在list.clear()之後,執行以下代碼:
adapter.notifyDataSetChanged();
有問題請留言討論!!!
1.bug原因:請求刷新數據時,調用了list.clear(),同時滑動了RecyclerView
2.問題解決:在list.clear()之後,執行以下代碼:
adapter.notifyDataSetChanged();
有問題請留言討論!!!