DiffUtil is a must!
Nikola Despotoski
36816

I wrote also simple solution for finding diffs but only on Adapter level

It’s quite simple to use:

You have to implement `SimpleDetector.Detector` for `Product`, with `same` and `matches`

now https://github.com/jacek-marchwicki/rx-java-extensions/tree/master/rx-extensions/src/main/java/com/appunite/detector

when you use `ChangesDetector.newData(adapter, yourList)` it will call `notifyItemRange*` methods including movements of items

Tests are available here: https://github.com/jacek-marchwicki/rx-java-extensions/blob/master/rx-extensions/src/test/java/com/appunite/detector/ChangesDetectorTest.java

You can also use this tool with UniversalAdapter, example:

https://github.com/jacek-marchwicki/rx-java-extensions/blob/master/example/src/main/java/com/appunite/rx/example/MainActivity.java

Show your support

Clapping shows how much you appreciated Jacek Marchwicki’s story.