How to implement ItemAnimator of RecyclerView to disable the animation of notifyItemChanged

前端 未结 8 1147
有刺的猬
有刺的猬 2020-12-13 03:20

In my project I need disable the \"change\" animation of RecyclerView while notifyItemChanged.

I investigated in the source of Recycl

8条回答
  •  再見小時候
    2020-12-13 04:07

    Just if someone stumbles like me:
    Somehow setSupportsChangeAnimations(false) didn't work for me, but recyclerView.getItemAnimator().setChangeDuration(0) has just removed the animation nicely.

提交回复
热议问题