Closed bmbariah closed 7 years ago
Do you know why RecyclerView called 'Recycler'? You can repeat this in any RecyclerView.
I suggest you to save color state in data, and set the onclicklistener for itemview in viewholder to change data's color state, and render the view at the beginning of setData.
Sorry ! Fixed this issue weeks ago but forgot to close it here.
I am using your demo app and noticed that if I change the background color of any item in the view via OnItemClick, say to color red; Some other untouched views will also be changed..
To replicate this bug simply:
You'll notice that if you click on an item and it's background changes to RED then scroll further down, other rows will be RED even though they haven't been touched. This issue is replicated even with OnItemClick in ViewHolder.
Kindly assist...Thanks