【发布时间】:2014-06-14 13:09:36
【问题描述】:
我有一个使用 sqlite 的 android 应用程序,在它获取数据后,它必须显示在列表视图中。
我的问题是如何显示图像?
谁能帮帮我???
这是我的代码
//但是这里显示的是同一个大厅列表的图像如何在正确的位置显示每个图像??
for (int i = 0; i < 49; i++) {
ImageView imagenow = (ImageView) convertView
.findViewById(R.id.imageView1);
// flag1
int imageid = context.getResources().getIdentifier("brazil_flag",
"drawable", context.getPackageName());
imagenow.setImageResource(imageid);
}
【问题讨论】:
标签: android android-listview imageview android-sqlite baseadapter