当我在 hashmap 中添加位图图像以在 listview 中显示它时出现此错误有什么帮助吗?
hm = new HashMap<String, Object>();
hm.put(IMAGE, ops);
hm.put(TITLE, text);
hm.put(CARDS_COUNT, cardsCount +" Stampii");
items.add(hm);
}
final SimpleAdapter adapter = new SimpleAdapter(this, items, R.layout.main_listview,
new String[]{TITLE, CARDS_COUNT, IMAGE}, new int[]{ R.id.main_name, R.id.main_info, R.id.main_img});
listView.setAdapter(adapter);