我有一个listview,里面有2个textview,使用简单的游标适配器填充数据库。我想在列表中的每个项目中添加一个图像,其中包含数据库中的相应图像。我已经搜索过这个主题,但还没有找到解决方案。任何帮助将不胜感激
String[] from = new String[]{InventoryDbAdapter.KEY_TITLE, InventoryDbAdapter.KEY_DESCRIPTION};
// and an array of the fields we want to bind those fields to (in this case just text1)
int[] to = new int[]{R.id.text1,R.id.text2};
// Now create a simple cursor adapter and set it to display
SimpleCursorAdapter inventory =
new SimpleCursorAdapter(this, R.layout.row, InventoryCursor, from, to);
setListAdapter(inventory
感谢