Sign in Go Pro

RecyclerView

ItemDecoration Advanced Usage and Customization

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next

Previous

About

This lesson will show how to use a 3rd party library to implement dividers in your lists. This video will highlight some important aspects of using ItemDecoration. ####Lesson Objectives * Implement a 3rd party library for ItemDecoration, instead of using custom code * Show ability to place multiple ItemDecorations on a single RecyclerView at the same time * Add and Remove ItemDecoration while the app is running (not just when initializing the RecyclerView). #### Library Implemented There are a few different libraries for this, I liked ["SimpleItemDecoration"](https://github.com/bignerdranch/simple-item-decoration?ref=casterio) , in particular there is a great [write-up](http://bignerdranch.github.io/simple-item-decoration/?ref=casterio) explaining implementation details of this library, which is worth reading. #### Android References [RecyclerView.ItemDecoration](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemDecoration.html?ref=casterio)

Lessons in RecyclerView