Design + Code an Android App from Scratch
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.