How To Nest A Radiogroup With Dynamic Lists Of Radiobutton Inside Each Row/item Of A Recyclerview
Solution 1:
you can give a try to this code https://github.com/h6ah4i/android-advancedrecyclerview
This is a single adapter having groupSection or GroupItem maintained with one recyclerView because your design is not too much complex thismight be helpful
first run "draggable with section
" as it is ... and then change the layout as per your need
you may need to remove the draggable interface with its methods as I guess you don't need them
implements DraggableItemAdapter<DraggableWithSectionExampleAdapter.MyViewHolder>
Carefully have a look at this class and you might need to integrate your JSON data some how in this way, or inside this classes(I suggest if your not an expert) comment line no 37 - 53 and atry to replicate with your data
As you required to select some or None Items from the group, ... you can implement a check-box or switch the images and set the 0 for unchecked or 1 for checked to your data class (I'm mean your POJO class you generated from JSON or you can even maintain a key in json )
Post a Comment for "How To Nest A Radiogroup With Dynamic Lists Of Radiobutton Inside Each Row/item Of A Recyclerview"