-1

I'm trying to load online images to ImageView in android and all it works correctly. But when I try to load more items into the recyclerview, all the loaded imageviews do a little flicker.

This is the basic code:

Ion.with(holder.thumbnail).load(album.getImageSmall());

How I can stop this flicker?

Hitesh Sahu
  • 41,955
  • 17
  • 205
  • 154
Oriol Lopez
  • 369
  • 2
  • 6
  • 19

1 Answers1

0

That is default item change animation of recycler view and also a known bug . Try setting animation duration to 0

recyclerView.getItemAnimator().setChangeDuration(0);

You can further look into this thread for this matter

RecyclerView blinking after notifyDatasetChanged()

I am not marking this question as duplicate as there is no accepted answer.

Community
  • 1
  • 1
Hitesh Sahu
  • 41,955
  • 17
  • 205
  • 154