Good day
I have been battling with implementing an on click listener for the new recyclerview library. The thing is I have cards in my recyclerview and each has an icon, when the user clicks the card, the icon on the clicked card changes colour. I am able to achieve this but I have recently discovered that as I scroll down, the cards that come into view also have their icons changed, and as I scroll back up, the cards that I initially selected are no longer selected. Does anyone know how to tackle this?
I have been battling with implementing an on click listener for the new recyclerview library. The thing is I have cards in my recyclerview and each has an icon, when the user clicks the card, the icon on the clicked card changes colour. I am able to achieve this but I have recently discovered that as I scroll down, the cards that come into view also have their icons changed, and as I scroll back up, the cards that I initially selected are no longer selected. Does anyone know how to tackle this?