58,454
社区成员
发帖
与我相关
我的任务
分享
private ArrayList<String> commentNickname = null;
private ArrayList<String> sightComment = null;
private ArrayList<Bitmap> commentImage = null;
ArrayList<HashMap<String, Object>> commentList = new ArrayList<HashMap<String, Object>>();
HashMap<String, Object> map= null;
while(i<commentCount){
map= new HashMap<String, Object>();
map.put("picture", commentImage.get(i));
map.put("commentnickname",commentNickname.get(i));
map.put("sightComment", sightComment.get(i));
commentList.add(map);
i++;
}
SightAdapter listAdapter = new SightAdapter(this, commentList, R.layout.sightcommentlistview,
new String[] { "commentnickname", "sightComment","picture"},
new int[] { R.id.LVuserNameCO,R.id.LVsightComment,R.id.LVimageView});
setListAdapter(listAdapter);