vendredi 28 août 2015

How to get data from json array of different objects and add that in gridview of checkboxes in android dynamically

fields: [
{
type: "radio",
data: {
0: "I am in ABROAD",
1: " I am in INDIA"
}
},
{
header: "How would you like to go Abroad ?",
type: "check",
data: {
0: "Any How",
1: "On a Migrate Overseas",
2: "On a Student Visas",
3: "On a Settle Abroad",
4: "On a Temporary Visas",
5: "On a Work Abroad",
6: "On a Others",
7: "On a Invest Abroad",
8: "On a Evaluation",
9: "On a Dependent Visas",
10: "On a Concierge Services",
11: "On a Appeals",
12: "On a Work study Program"
}
},
{
header: "Which country would you be interested in ?",
type: "check",
data: {
0: "Anywhere Abroad",
2: "On a UK",
3: "On a USA",
4: "On a Australia",
5: "On a Canada",
6: "On a Denmark",
7: "On a France",
8: "On a Singapore",
9: "On a New Zealand",
10: "On a Hong Kong",
11: "On a Norway",
12: "On a Austria",
13: "On a South Africa",
14: "On a Ireland",
15: "On a Germany",
16: "On a Philippines",
17: "On a Netherlands",
18: "On a Malaysia",
19: "On a Switzerland",
20: "On a Belgium",
21: "On a Sweden"
}
},
{
header: "When do you plan to go ?",
type: "radio",
data: {
Immediate: "Immediate",
This Week: "This Week",
This Month: "This Month",
3 Months: "3 Months",
6 Months: "6 Months",
Not Sure: "Not Sure"
}
}
]

My Json is like this.. I need to get data from this json and add that in Gridview of checkboxes. I am not getting the logic how to do this ? first object of that json I need to add to a radio group and others to Gridview of checkboxes.




Aucun commentaire:

Enregistrer un commentaire