(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
?