TradeMe / MapMe

The Android maps adapter
MIT License
841 stars 75 forks source link

Add List adapters for simpler integration with DiffUtil #32

Closed dellisd closed 2 years ago

dellisd commented 5 years ago

Since DiffUtil is usually used quite heavily with this library, I thought it might be useful to add an adapter with an interface similar to ListAdapter which greatly simplifies doing asynchronous diffs for an adapter.

This implementation is based on ListAdapter and uses the AsyncListDiffer class to perform the diff and dispatch it to the adapter.

Some tests still need to be written.