【发布时间】:2016-09-11 06:58:34
【问题描述】:
在我的应用程序中,我收到了多种 JSON 格式,如下所示:
"forms":[ {"name": "form1","title": "First Form","order": 1,
"fields":[
"name": "firstName","type": "InputText", "maxLength": "10",
"restriction": "text"},
{"name": "lastName","type": "InputText","maxLength": "10","restriction": "text"}
]
},
{"name": "form2","title": "Second Form","order": 2,
"fields": [
{"name": "email","type": "InputText","maxLength": "50","restriction": "email"},
{"name": "gender","type": "dropdown","values": [male,female]},
{"name": "married","type": "boolean"}
]
}
]
inputText=editText , dropDown=spinner, boolean= checkBox
我正在尝试将我的视图划分为每个表单的部分,因为您看到每个表单都有不同的字段,请问有人可以给我这样做的想法吗?
【问题讨论】:
标签: android arrays android-json