How to update RecyclerView item without animation?
Based on the Rakshit's answer, in Kotlin 1.2 the following code works fine:
notifyItemChanged(position, Unit)
Try this
notifyItemChanged(position, Object);
This will update the position without animating it as we are passing our Object in it.
Try this and do let me know.
For Kotlin
you can use
notifyItemChanged(int position, @Nullable Object payload)
There is a dedicated method to disable just item changed animations:
((SimpleItemAnimator) myRecyclerView.getItemAnimator()).setSupportsChangeAnimations(false);
Ref.: https://developer.android.com/reference/androidx/recyclerview/widget/SimpleItemAnimator