SimpleAdapter:将数据绑定到View上
SimpleAdaptersimpleAdapter = new SimpleAdapter(
Context context,
List<? extendsMap<String,Object>> data,
Int resorce,
String[] from,
Int[] to);
1. Context context:上下文
2. List<?extends Map<String,Object>> data:ListView绑定的数据
3. Int resorce:ListView的子条目的布局文件的id
4. String[] from:data数据中Map集合中的key值
5. Int[] to:resoce中的每个空间的id,要与from中Map集合的Key值对应
From和to的作用是:将Map中的key值对应的value绑定到to的id所对应的view上