java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling异常解决方案


recyclerView.post(new Runnable() {

@Override

    public void run() {

adapter.notifyItemChanged(preDeletePosition);

    }

});


建议不要在ViewHolder中进行notify

你可能感兴趣的:(java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling异常解决方案)