Now, I want to create Gridview
with section and I do following
this
and then I stuck problem at I don't know how to get position section and item from JSONArray
I have JSONArray
like this
“Team”: [
{
"team_id": "16",
"team_name": "3",
"team_max_player": "6",
"team_amount": "2",
"team_member_list": [
{
"id": "19",
"room_id": "23",
"user_id": "75",
"team_id": "16",
"detail_status": ""
},
{
"id": "21",
"room_id": "23",
"user_id": "46",
"team_id": "16",
"detail_status": ""
}
]
},
{
"team_id": "14",
"team_name": "1",
"team_max_player": "1",
"team_amount": "1",
"team_member_list": [
{
"id": "20",
"room_id": "23",
"user_id": "40",
"team_id": "14",
"detail_status": ""
}
]
}
]
I want to set "team_id" as section and "team_member_list" as an item in that section. please teach me to do it.
I am currently in grade 12 in school with programing class, android studio, JAVA Moblie App. Please help me and sorry about my English.