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。

posted @ 2013-05-23 16:27  allenguo227  阅读(107)  评论(0编辑  收藏  举报