title: expandable listview with multiple data in single chlild row
body: <p>i want to display group and child data for that i'm referring this link <a href="http://www.journaldev.com/9942/android-expandablelistview-example-tutorial" rel="nofollow noreferrer">http://www.journaldev.com/9942/android-expandablelistview-example-tutorial</a>, but the tutorial have only single item in child and parent view and i want to set multiple items in parent and child view both. can anyone help me to do this?</p>
  
  <pre><code>for group 1)
  name, location, number
  for child 1)
  name and id
  </code></pre>
  
  <p>my json data is,</p>
  
  <pre><code>"stds": [
      {
        "stopNum": "0",
        "stopName": "one",
        "loc": "23.097278,72.446139"
      },
      {
        "stopNum": "1",
        "stopName": "theatre",
        "loc": "23.073028,72.5245",
        "students": [
          {
            "studentName": "Luke",
            "studentId": "58eb423bcf51a2bd759a740a"
          }
        ]
      },
      {
        "stopNum": "2",
        "stopName": "flyover",
        "loc": "23.07,72.521917",
        "students": [
          {
            "studentName": "Leia",
            "studentId": "58eb423ccf51a2bd759a740b"
          }
        ]
      },
      {
        "stopNum": "3",
        "stopName": "mall",
        "loc": "23.076222,72.50775",
        "students": [
          {
            "studentName": "Advik",
            "studentId": "58eb423ccf51a2bd759a740d"
          },
          {
            "studentName": "Bipasha",
            "studentId": "58eb423ccf51a2bd759a740e"
          }
        ]
      },
      {
        "stopNum": "4",
        "stopName": "alpha",
        "loc": "23.093639,72.495972",
        "students": [
          {
            "studentName": "Aarav",
            "studentId": "58eb423ccf51a2bd759a740c"
          }
        ]
      },
      {
        "stopNum": "5",
        "stopName": "reliance",
        "loc": "23.097278,72.446139",
        "students": []
      }
    ]
  </code></pre>
  
  <p>and i have parsed  like this,</p>
  
  <pre><code>String stopNum,stopName,stopLoc,studentName,studentId;
  JSONArray routedataArray = generalFunc.getJsonArray(objects,"stds");
  
  for (int i = 0; i &lt; routedataArray.length(); i++) {
  JSONObject jsonObject,studentobject;
  JSONArray studentArray;
  try {
  jsonObject = routedataArray.getJSONObject(i);
  stopNum=generalFunc.getStringFromJobject(jsonObject, "stopNum");
  stopName=generalFunc.getStringFromJobject(jsonObject, "stopName");
  stopLoc=generalFunc.getStringFromJobject(jsonObject, "loc");
  studentArray=jsonObject.getJSONArray("students");
  
  for(int j=0;j&lt;studentArray.length();j++){
  studentobject=studentArray.getJSONObject(j);
  studentName=generalFunc.getStringFromJobject(studentobject, "studentName");
  studentId=generalFunc.getStringFromJobject(studentobject, "studentId");
  mapchild=new HashMap&lt;&gt;();
  mapchild.put("studentName",studentName);
  mapchild.put("studentId",studentId);
  }
  
  mapheader = new HashMap&lt;&gt;();
  mapheader.put("stopNum",stopNum);
  mapheader.put("stopName",stopName);
  mapheader.put("loc",stopLoc);
  
  
  } catch (JSONException e) {
  e.printStackTrace();
  }
  }
  </code></pre>