1

I want to include multiple fragments inside an recycler view. I am having main categories which i want to show vertically and below each category i want its sub categories to be shown horizontally.

So, how should I do this as all the data is external.

I want a view something like this:

enter image description here

ρяσѕρєя K
  • 132,198
  • 53
  • 198
  • 213
Tushar Rai
  • 2,371
  • 4
  • 28
  • 57

2 Answers2

0

According to what i understood from your post, It would be better to show something like expand and collapse card views in recycler view with header as main category and its sub categories as collapsing part instead of adding multiple fragments

Pooja Nair
  • 113
  • 7
  • I have attached an screenshot for the reference of the view in the question. – Tushar Rai May 10 '16 at 13:34
  • this can be achieved with the expand and collapse card view as well. I have an example where i have tried using animation. but not sure how i can share the source file with u – Pooja Nair May 11 '16 at 05:21
0

as per your screen shot , you can make one item containing two rows in which first row is "cloud", then second row is having three columns with details and then set it inside adapter. now you will be able to create multiple catogeries without using fragments. For Recyclerview demo follow the link below.

Recyclerview link

Mrugesh
  • 4,381
  • 8
  • 42
  • 84