I have a RecyclerView that displays a list of images and text that are downloaded from the internet via a RecyclerView adapter. The problem arises when I scroll up and down the RecyclerView. As I scroll down the list initially, everything seems fine and all the CardViews (a cardview containing an image and some text) are in their respective positions.
However, as I begin to scroll back up, all the previous CardViews are replaced by the lowest CardView. The lowest item of the recyclerview is reused to replace all the previous items in the RecyclerView.
Is this a RecyclerView bug? If not is there some way to solve this issue by maybe clearing the RecyclerView's cache or by forcing RecyclerView to recycle the correct items?