0

对于以下内容 - 我没有图片的 URL!我无法使用 URL。

如果我从 Internet 将图像下载到 Bitmap 数组中,如下所示:

 Bitmap image = BitmapFactory.decodeStream(file.getReadStream());
 //add to the Bitmap Array
 images.add(image);

这可以发送到毕加索(或任何其他图像加载器,如 UIL?)

我知道我可以在我的适配器中显示图像,但我遇到了内存不足的问题。我认为毕加索可以处理这个和缓存等。

这不起作用,因为它不接受位图源。有没有其他图书馆可以做到这一点?

Picasso.with(context).load(images.get(position)).resize(60, 60).error(R.drawable.error_icon).into(holder.iconImage);
4

0 回答 0