String[] myTitle = { "三星将推云服务S-Cloud 挑战苹果iCloud",
"从“神童”到“大师” 丁俊晖就差一个世锦赛了",
"北京国际电影节今晚开幕 近4000嘉宾出席",
"调查称2200万中国人欲移民美国 居全球之首",};
ArrayList<Map<String,Object>> mData= new ArrayList<Map<String,Object>>();
int lengh = myTitle.length;
for(int i =0; i < lengh; i++) {
Map<String,Object> item = new HashMap<String,Object>();
item.put("title", myTitle[i]);
mData.add(item);
}
SimpleAdapter adapter = new SimpleAdapter(paramChildView.getContext(), mData, R.layout.home_news_item,
new String[]{"title"},new int[]{R.id.news_title});
//设置Adapter
localListView.setAdapter(adapter);
//localExpansionView.setTitleSuffix(false);
localExpansionView.expand();
}