Open landarskiy opened 6 years ago
Not fixed yet, do not use version 2.0.17
I think it has been fixed, try 2.0.17
改了这个之后,在只有两张图片的时候刷新 adapter 有小概率出现闪屏,图片无限闪动。还原之前版本的代码就不会有这个问题
好像都会闪。只出现在两张图片的时候 notify change 就会闪
@leveychen notifyDataSetChange
还是 notifyItemChanged
notifyItemRangeChanged
这些?
@leochuan notifyDataSetChanged 场景是这样的,网络获取图片,然后 adapter.setDatas() adapter.notifyDataSetChanged() 在只有两张图片set进去的情况下,有一定概率出现图片闪动
After remove first element and call notifyItemRangeRemoved(0,1) in adapter I have got a exception