samedi 18 octobre 2014

How to set two items of same category at a time from json into android dropdown(Spinner) using adapter


Vote count:

0




Can anybody please explain me how to set two items of the same category at a time from json into android dropdown(Spinner) using adapter.


josn data: {"categories":[{"id":"1","name":"Beverages"},{"id":"2","name":"Bread"},{"id":"3","name":"Cereals"},{"id":"4","name":"Cheese"},{"id":"5","name":"Citrus Fruits"}]}


Following is code iam using to set only one item into spinner: spinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);



asked 1 min ago







How to set two items of same category at a time from json into android dropdown(Spinner) using adapter

Aucun commentaire:

Enregistrer un commentaire