2016-09-11 1 views
-3

나는이 같은 JSON 여러 형태를 수신하고 있습니다 :android에서 동적보기를 만드시겠습니까? 내 응용 프로그램에서

"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]를 = 글고, 드롭 = 스피너가, 부울 = 체크 박스

내보기를 만들려고 노력하고이 부분으로 나눌 수 각 양식에 대해 각 양식마다 다른 필드가있는 것을 볼 때 누구나 저에게 그 아이디어를 줄 수 있습니까?

답변

관련 문제