private SimpleAdapter adapter = new SimpleAdapter(
this,//上下文data,//数据List<Map<String,Object>>
R.layout.item,//布局
new String[]{"name","info"},//数据从哪里来 Map的key
new int[]{R.id.tv_name,R.id.tv_info});
注意:
通过适配器得到item的值返回的是map集合
Map<String,Object> map = (Map<String, Object>) adapter.getItem(position);
String text = (String)map.get("name") + map.get("info");