我试图显示和附加图像存储在SD卡上的图像视图,我可以显示图像与setImageBitmap
没有任何问题,但当我尝试使用Picasso
不显示图像Andorid Picasso不显示图像从SDCARD
final File imageFile = new File(APP.DIR_APP + APP.IMAGE + "/" + channel.get(position).getFileName());
if (imageFile.isFile() && imageFile.exists()) {
BitmapFactory.Options options = new BitmapFactory.Options();
//options.inSampleSize = 8;
//holder.post_image.setImageBitmap(BitmapFactory.decodeFile(imageFile.getAbsolutePath(), options));
Picasso.with(context).load(imageFile).into(holder.post_image);
}
指这样的:http://stackoverflow.com/a/24097624/5425930 –
尝试'Picasso.with(上下文).load(Uri.parse(镜像文件)的ToString ())。(holder.post_image);' – Enzokie
当毕加索失败时,如果图像尺寸真的很大,我也有类似的情况。对我而言,解决方案是迁移到Glide。 –