Does RecylerView change one parameter in a row?

I have a RecyclerView, one line contains text, image. After loading the data with the click of a button, I want to change the text without reloading the row image. I tried using notifyItemChanged (position). But it does reload the image. I use slide to load images, so when I use notifyItemChanged (position), the line flickers.

0
source share
1 answer

The whole line will be reloaded after the call notifyItemChanged()
Two options:
1) Disable animation of the recyclerview element by default

ItemAnimator animator = recyclerView.getItemAnimator();
if (animator instanceof SimpleItemAnimator) {
  ((SimpleItemAnimator) animator).setSupportsChangeAnimations(false);
}

2)

Glide,

+1

All Articles