1,常见的一搜都是说设置动画,这种不一定有效
// 第一种,直接取消动画
RecyclerView.ItemAnimator animator2 = recyclerView.getItemAnimator();
if (animator2 instanceof SimpleItemAnimator) {
((SimpleItemAnimator) animator2).setSupportsChangeAnimations(false);
}
2,第二种就是直接给adpter设置一个属性完事,这种有效
adapter.setHasStableIds(true);
根据不同场景多尝试