RecyclerView messes up the items while scrolling down

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.

Make your textview variables private in the CrimeHolder class

2 Likes

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

1 Like

I am having same problem and textviews are private already