I\'m using Glide library for loading images from URL, which I get from Graph Request (Facebook). It\'s used in RecyclerAdapter. When I\'m scrolling, each ImageView shows wro
Your "problem" is that the ImageView
s you are using are recycled from previous rows (which are disappearing while scrolling). Thus your ImageView
in onBindViewHolder
already contains a previous image.
This image is displayed until the network requests (GraphRequest and Glide) for the new image are finished.
To avoid the problem you have to clear your ImageView
before calling getEventCover
. This can be done by setting an placeholder image or by setting a transparent image as follows:
main_image.setImageResource(android.R.color.transparent);