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" , in particular there is a great write-up explaining implementation details of this library, which is worth reading.

Android References

RecyclerView.ItemDecoration

Comments

There are no comments on this lesson, start the conversation below ...

>
You need to go PRO to post comments.

Lessons in RecyclerView