0
因此,我正在按照教程here,所以我可以图像到我的列表视图。该问题在本教程中的图像已经安装,以便用于获取图像将被保存为int,像这样:自定义arrayadapter listview与图像
private int imageId;
private String title;
private String desc;
public RowItem(int imageId, String title, String desc) {
this.imageId = imageId;
this.title = title;
this.desc = desc;
}
public int getImageId() {
return imageId;
}
但我正在逐渐从一个服务器那里即将应用的图像字符串,然后转换为位图。我的问题是我可以将int更改为位图,一切都会解决,或者还有其他我需要做的事情吗?我不想通过这个工作,然后它不工作。
谢谢你在前进,
泰勒
但是,如果我只是将其更改为int位图,它会继续工作。我已经知道应用程序应该总是以字符串的形式获取图像,我不知道如何实现您发布的图像加载器。 – TylerM
nope它不会那么容易。要看到一个例子,你可以按照http://sunil-android.blogspot.it/2013/09/lazy-loading-image-download-from.html我刚刚搜索:listview通用图像加载器教程 – pna