1.不使用动画
((SimpleItemAnimator)recyclerView.getItemAnimator()).setSupportsChangeAnimations(false);
2.动画播放时间置为0
recyclerView.getItemAnimator().setChangeDuration(0);
((SimpleItemAnimator)recyclerView.getItemAnimator()).setSupportsChangeAnimations(false);
recyclerView.getItemAnimator().setChangeDuration(0);
本文标题:RecyclerView 单条目刷新notifyItem 去除闪
本文链接:https://www.haomeiwen.com/subject/veqlzltx.html
网友评论