List<Map<String>> Items = new ArrayList<Map<String>>();
// 把該顯示的內容放到list中
for (int i = 0; i < HELP_NAME.length; i++)
{
Map<String, Object> item = new HashMap<String, Object>();
item.put("textview1", HELP_NAME[i]);
Items.add(item);
}
// 構建介面卡Adapter,將資料與顯示資料的佈局頁面繫結
SimpleAdapter simpleAdapter = new SimpleAdapter(this, Items,
R.layout.listitem, new String[] { "textview1", "image" },
new int[] { R.id.text_item_id});
// 通過setAdapter()方法把介面卡設定給ListView
setListAdapter(simpleAdapter);