RecyclerView : IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling
产生的原因:滑动的时候调用notifydatachange方法刷新数据
解决方法:
apRecyclerView.post(new Runnable() {
@Override
public void run() {
adapter.notifyItemRangeRemoved(0, 3);
}
}
});