下面是我的JSON结构,因此需要构建页面
{
"error": "ERROR CODE",(note: thiswillonlybepresentifanerroroccurs)"type": "native_ui","components": [
{
" pageHeader": "header"," elements": [
{
"type ": "header","content ": "header text"
},{
"type ": "text","content ": "text"
},{
"type ": "edittext","value ": "default text","inputType ": "number"/"text"/"email"/"tel"/"password","id": "componentID"
},{
"type ": "checkbox","label ": "text","value ": true/false,{
"type ": "horizontal_rule"
},{
"type ": "line_break"
},{
"type ": "buttonDialog","buttonText ": "button text""header ": "header text","content ": "dialog text","positiveButton": "button text","negativeButton": "button text"/null
},{
"type ": "radio_group","header ": "header text","items ": [
"item1","item2","item3","item4",&
],"value": 1,{
"type ": "picker",{
"type ": "linkDialog","link ": "link text""header ": "header text",{
"type ": "navButton","pageIndex ": 1"content ": "button text",}
]
}
]
}