Create your account

Already have an account? Login here

Create account

71. Implement Sectioned Recycler View

Design + Code an Android App from Scratch

Woah, wait a second..

Scrounge up some loose change to become a pro member, or login to your account to view this lesson.

Alright, join now. Or login to your account if you're already a pro member.

This video shows you how to implement a RecyclerView with sections in Android. In the first step, override the getItemViewType method to indicate that your RecyclerView is capable of displaying 2 different types of rows by returning 2 different integer values, one when the item at the supplied position is a normal item and the other when the item at the supplied position is a Footer. Change the onCreateViewHolder to return 2 different ViewHolder objects representing the regular item and the footer respectively. Change the getItemCount and onBindViewHolder to reflect the changes.

Course Cirriculum