0
JSONArray에서 오브젝트 수에 따라 동적 조각을 생성하고 싶습니다. json으로 예를 들어ViewPager에 뷰가있는 동적 조각 만들기
내가 배열 내에서 3 개체가 아래 :
“JSONArray”: [
{
"CurrentStep": false,
"Id": 1,
"MessageOne": "Confirm your location",
"MessageTwo": "Prrrrrrrrrrrr”,
"PercentageComplete": 100,
"StepName": "Prescription Created"
},
{
"CurrentStep": true,
"Id": 2,
"MessageOne": "Location confirmed",
"MessageTwo": “rrrrrrrrrrrrrrrr”,
"PercentageComplete": 0,
"StepName": "Location Confirmed"
},
{
"CurrentStep": false,
"Id": 3,
"MessageOne": "Pharmacies contacted",
"MessageTwo": “rrrrrrrrrrrr”,
"PercentageComplete": 0,
"StepName": "Pharmacies Contacted"
},
{
"CurrentStep": false,
"Id": 10,
"MessageOne": "Ready for collection",
"MessageTwo": rrrrrrrrrr,
"PercentageComplete": 0,
"StepName":
나는 것 싶습니다 결과를 뭔가 같은 : 당신이 볼 수 있듯이 그래서
JSONArray에있는 객체의 양을 따르는 3 개의 단편입니다.
어떤 접근 방식을 따라야합니까? 어떤 아이디어?
여기 내 대답을 확인하십시오 - http://stackoverflow.com/a/42758986/1649353 –