/** 子列表中相应的数据 */ protected List<JcInfo> getSubInfoForListView(JSONObject jsonObj) { ArrayList<JcInfo> list = new ArrayList<JcInfo>(); try { if (initViewState == FIRST_JC_NOTICE) { dateStr = jsonObj.getString("date"); formatDate(dateStr); } JSONArray jsonArray = jsonObj.getJSONArray("result"); for (int i = 0; i < jsonArray.length(); i++) { JcInfo itemInfo = new JcInfo(); JSONObject jsonItem = jsonArray.getJSONObject(i); itemInfo.setDay(jsonItem.getString("day")); itemInfo.setWeekId(jsonItem.getString("weekId")); itemInfo.setTeamId(jsonItem.getString("teamId")); itemInfo.setTime(jsonItem.getString("dayForamt")); itemInfo.setWeek(jsonItem.getString("week")); itemInfo.setTeamId(jsonItem.getString("teamId")); itemInfo.setTeam(jsonItem.getString("league")); itemInfo.setResult(jsonItem.getString("result")); itemInfo.setScore(jsonItem.getString("score")); itemInfo.setTimeEnd(jsonItem.getString("time")); itemInfo.setLetPoint(jsonItem.getString("letPoint")); String teams[] = jsonItem.getString("team").split(":"); itemInfo.setHome(teams[0]); itemInfo.setAway(teams[1]); list.add(itemInfo); } } catch (JSONException e) { e.printStackTrace(); } return list; }