Sign in Go Pro

RecyclerView

Animating Content Changes

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next

Previous

About

This video will show how to use the granular notification methods available in the _RecyclerView.Adapter_ to change the contents of a list. Using these methods will result in a more efficient list change, and also will include delightful animations when items are inserted, deleted or moved. I will explain why using the _notifyDataSetChanged()_ method is not the best choice when using the RecyclerView, and why you should use the detailed notify methods to update your list contents effectively. The sample code used in this video builds upon the code from the [RecyclerView: Drag & Drop and Swipe to Dismiss using ItemTouchHelper](http://watch.caster.io/lessons/recyclerview-drag-drop-and-swipe-to-dismiss-using-itemtouchhelper) lesson. You could also start with the [Bootstrap: Adding a new Fragment with a RecyclerView](http://watch.caster.io/lessons/adding-a-new-fragment-with-a-recyclerview) lesson, which will work exactly the same. [_RecyclerView.Adapter_ API Documentation](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter.html)

Lessons in RecyclerView