< Lineup

Expandable RecyclerViews and You

Wall Hub 2:20pm

Chat on Slack


Since it's launch at Google IO '14, RecyclerView has become the de-facto tool for displaying collection views. Unlike it's predecessor, ListView, RecyclerView is decoupled from the classic AbsListview and delegates all the different components required to show and animate a collection to a variety of other APIs - such as the RecyclerView.Adapter and LayoutManager. While RecyclerView definitely offers a brighter more customizable future - it is also still in it's infancy. Which means we don't get a lot of the basic use cases out of the box like we had with ListView. In this session we will walk through step by step how to replace one of the lost ListView subclasses - ExpandableListView. We will create our own custom RecyclerView.Adapter, and RecyclerView.ViewHolders to achieve a list that expands and collapses it's sections. And as a fun bonus at the end we'll even take a quick look at how we can add single and multi select functionality to the sections in our ExpandableRecyclerView.

Amanda Hill, thoughtbot

Android Dev @ thougbot. Previously @ Venmo A not-so-recent grad from Cornell University, Amanda was born and raised in NYC. She loves street vendor hot dogs, white sneakers, and taking pictures of food. When she's not blogging about her culinary confections, she can be found cursing at Gradle or trying to convert everyone she meets to the wonderful world of functional reactive programming!