Android using multiple layout in RecyclerView

In this tutorial I am explaining how to implement multiple layout in a single RecyclerView

Add ‘com.android.support:recyclerview‘ in Gradle dependencies and sync it (Check this tutorial for Recycler View example http://wiki.workassis.com/android-recyclerview-example/)

MainActivity

MyMediatorInterface

MyAdapter

GroupTitleModel

UserModel

ItemInterface

Layouts
activity_main.xml

row_item_group_title.xml

row_user_item.xml

Output

recyclerview-multiple-layout

 

1 Like
Author: bm on August 31, 2016
Category: Android
Tags: , , ,

Your comment:

Your Name

Comment:




Last articles