RecyclerView
Animate Complex Content Changes with DiffUtil
Autoplay
Previous
About
DiffUtil
is a new feature of the AppCompat library that makes it easier to understand how to animate complex data changes in a RecyclerView. Previously, if you wanted to use animations it was necessary to know details about the changes in your data, so you could chose the correct notify methods. You can use this tool to figure out the details of your changes, and it will apply the correct animations automatically.
I will show you how to create a custom DiffUtil.Callback
, which is class used by the system to compare objects in a list. You will customize this class, based on your data and use case, then the system will use this class to automatically figure out the changes in your list, and apply the correct animations as appropriate.
Instructor
Links
Comments
Lessons in RecyclerView
1. Introduction to RecyclerView
03:36
2. Creating a Vertical List
Pro
05:45
3. Reverse Ordering and Horizontal list
Pro
01:59
4. GridLayoutManager and SpanSizeLookup
Pro
02:03
5. Using StaggeredGridLayoutManager for Variably Sized Content
Pro
04:08
6. Using ItemDecoration to Add Dividers to a List

Pro
04:43
7. ItemDecoration Advanced Usage and Customization

Pro
02:50
8. Drag & Drop and Swipe to Dismiss using ItemTouchHelper

Pro
03:50
9. Animating Content Changes

Pro
03:06
10. Animate Complex Content Changes with DiffUtil

Pro
05:19

Something went wrong
Lesson added to playlist
Create new playlist
Name can't be empty