You need to create a new restData
for each item in your for loop otherwise it'll keep the reference to the same one for each item:
public void ListDrwaer() {
listDataHeader = new ArrayList<String>();
listDataChild = new HashMap<String, List<String>>();
try {
JSONObject jsonResponse = new JSONObject(strJson1);
JSONArray jsonMainNode = jsonResponse.optJSONArray("restaurants");
for (int i = 0; i < jsonMainNode.length(); i++) {
JSONObject jsonChildNode = jsonMainNode.getJSONObject(i);
String restName = jsonChildNode.optString("name");
String address = jsonChildNode.optString("address");
String mobile = jsonChildNode.optString("mobile");
String direction = jsonChildNode.optString("direction");
String bestTime = jsonChildNode.optString("bestTime");
String food = jsonChildNode.optString("food");
String dress = jsonChildNode.optString("dress");
String priceRange = jsonChildNode.optString("priceRange");
List<String> restData = new ArrayList<String>();
restData.add(address);
restData.add(mobile);
restData.add(direction);
restData.add(bestTime);
restData.add(food);
restData.add(dress);
restData.add(priceRange);
listDataHeader.add(restName);
listDataChild.put(restName, restData);
}
} catch (JSONException e) {
Toast.makeText(getApplicationContext(), "Error..." + e.toString(),
Toast.LENGTH_LONG).show();
}
listAdapter = new ExpandableListAdapter(this, listDataHeader, listDataChild);
expListView.setAdapter(listAdapter);
}