I need a layout like this:
The Red titles are the first level array from dish_options
and the RadioButtons
are a populated from an array items
inside dish_options
of the json:
As you may notice the dish_options
is an array, which might have many more object inside one of the keys of this dish_options
might store an items
arrays.
I tried using getItemViewType()
and set different layouts for first level dish_options
(red title) and implemented a different layout for the RadioButton
in each row of items
the problem is that I have to use RadioGroup to make RadioButton
unique (only 1 click per radiogroup). So I'm stucked with this and no idea how to proceed.
Should I nest a RecyclerView inside each row of the RecyclerView?