RecyclerView messes up the items while scrolling down


#1

I just finished the chapter 8 of the book but i’ve encountered a problem:
When i lunch the app everything is fine but as soon as i scroll the list down the items are not sorted anymore.I don’t understand what’s the problem:

Here’s the code.


#2

Make your textview variables private in the CrimeHolder class


#3

Thank you!Yeah that was the problem,now my app is ok.