【发布时间】:2017-01-23 15:38:12
【问题描述】:
如何在 AsyncTask 的 postExecute 方法中获取 Map 的结果?我无法在结果中获取结果?
@Override
protected void onPostExecute(Map<String,List<CommentModel>> results) {
super.onPostExecute(results);
for(int i=0;i<results.size();i++){
String ar =results.get(i).get(commentModelList);
// String content = commentModel.getContent();
Toast.makeText(getApplicationContext(),"Hello",Toast.LENGTH_LONG).show();
ExpandableListAdapter expandableListAdapter = new Expandablelistadapter(getApplicationContext(),parentlist,childlist);
list.setAdapter(expandableListAdapter);
}
}
【问题讨论】: