mercredi 1 mars 2017

Android Listview with multiple rows Like UperEats

As you can see in screenshots i need to implement the same thing

the idea is that each product has options and each option has multiple option items, the option can be single choice or multiple choice selection.

you can see the JSON below

{"Id":1,"Name":"Special","Description":null,"HasOptions":true,"ProductItemImageModel":null,"ProductItemPriceModel":null,"Options":[{"OptionId":5,"OptionName":"Add Extra","Type":1,"OptionItems":[{"ItemOptionId":9,"ItemOptionName":"Green Pepper","ItemOptionPrice":2.5},{"ItemOptionId":10,"ItemOptionName":"Mushroom","ItemOptionPrice":2.5}]},{"OptionId":6,"OptionName":"DoughType","Type":2,"OptionItems":[{"ItemOptionId":6,"ItemOptionName":"Brown","ItemOptionPrice":2.5},{"ItemOptionId":7,"ItemOptionName":"Extra Thin","ItemOptionPrice":2.5},{"ItemOptionId":8,"ItemOptionName":"Regular","ItemOptionPrice":2.5}]}],"IsSucceeded":true,"Errors":null} 

as you can see in options there is type if type=1 then its radio buttons options if type =2 then its check box options.

I need the same as UperEats

How can i implement this?

enter image description here enter image description here




Aucun commentaire:

Enregistrer un commentaire