May 2022
Intermediate to advanced
688 pages
20h 12m
English
As the backing data changes, RecyclerView provides all the tools needed to perform animations to reflect those changes. As in the example above, you could call APIs like RecyclerView.Adapter.notifyItemMoved(…) or RecyclerView.Adapter.notifyItemInserted(…) to tell the RecyclerView to animate those changes in. However, you do not usually have visibility on specific changes to your data, so you cannot easily call those functions on the individual changes in the list.
Instead, it is much more common to be presented with a copy of the list of data, with the changes embedded in it. Unless you manually calculate all the changes between the old list of data and the new list ...
Read now
Unlock full access