Is there any way to apply two recyclerview layouts when using ConcatAdapter?

316 views Asked by At

enter image description here

enter image description here

(RedBox is MainItem, Blue Box is SubItem)

I want to list another RecyclerView item(Sub Item) inside a RecyclerView item(Main Item) as shown in the picture.

In fact, this has already been implemented. I implemented it by using SubAdapter in onBindViewHolder of Main Adapter.

However, since it is an Adapter in an Adapter, I decided that it was complicated. I found out about ConcatAdapter and tried to use it.

However, at least as far as I know, it seems that only one RecyclerView Layout can be expressed when using ConcatAdapter.

Is there a way to apply each of the two RecyclerView Layouts when using ConcatAdapter?

0

There are 0 answers