我想做一个android的listview每一个list都有三项,java文件是这样,怎么直接停止运行呢?求大神
mList=newArrayList<Map<String,Object>>();Map<String,Object>map=newHashMap<String,Obje...
mList = new ArrayList<Map<String,Object>>();
Map<String, Object> map = new HashMap<String, Object>();
map.put("First", "这是序号");
map.put("Next", "这是疾病");
map.put("Third", "这是内容");
mList.add(map);
mListAdapter = null;
mListAdapter = new SimpleAdapter(this, mList, R.layout.item_layout,
new String[]{"First", "Next","Third"},
new int[]{R.id.num,R.id.disease, R.id.probability,});
mListView.setAdapter(mListAdapter); 展开
Map<String, Object> map = new HashMap<String, Object>();
map.put("First", "这是序号");
map.put("Next", "这是疾病");
map.put("Third", "这是内容");
mList.add(map);
mListAdapter = null;
mListAdapter = new SimpleAdapter(this, mList, R.layout.item_layout,
new String[]{"First", "Next","Third"},
new int[]{R.id.num,R.id.disease, R.id.probability,});
mListView.setAdapter(mListAdapter); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询