Skip to content Skip to sidebar Skip to footer

Recylerview Changing Single Parameter In A Row?

I have RecyclerView, single row includes text, image. After loading data, in a button click i want to change text without reloading image of the row. I tried using notifyItemChange

Solution 1:

Whole row will be reloaded once you call notifyItemChanged() Two options: 1) Disable default recyclerview item animation

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

2) Use placeholder while loading an image

Check out this Glide official link to fix the problem with placeholder

Post a Comment for "Recylerview Changing Single Parameter In A Row?"