SimpleAdapter格式填写
public SimpleAdapter (Context context, List<? extends Map<String, ?>> list, int resource, String[] from, int[] to)
其中:context为上下文,一般为this,
list 为需要显示的list。传入的是map对象。
resource 为展示在list上面的内容所在的layout文件(R.layout.xxx);
from 为list里面的map中的数据
to为展示在list上面的内容的所在的id。