I have a recyclerView
with two cardView
one with plain text
and the other with a list of data which is not specified. I have no problem creating two different view holder and set one single text data on first. The problem is how to load a list inside the 2nd cardView
. Is it possible to create a list view
adapter inside a recyclerView
adapter ??
Asked
Active
Viewed 612 times
0

Kristiyan Varbanov
- 2,439
- 2
- 17
- 37

ebro52
- 23
- 6
2 Answers
0
You should implement Custom LayoutManager
for that. Refer this answer for an example and explanation of how to do that

Community
- 1
- 1

Ravi Theja
- 3,371
- 1
- 22
- 34
0
Please post your code so that we can better understand your issue.
You can place a recycler view inside the second card view. And you can override getItemViewType()
in adapter to handle the two card views.

Jayakrishnan Salim
- 977
- 1
- 10
- 24
-
The issue is not that. both the cardview show up exatly as wanted. But the problem is first recycler view is scrollable and the second recycler view inside the 2nd cardview is also havving scroll bar. Sometimes the first scrolls and evrything works nice. but when the second gets focus and scrolls nothing happens. I am my self a bit confused now – ebro52 Mar 31 '16 at 06:42