Search code examples
androidpicasso

Android Picasso don't show image from SDCARD


I'm trying to show and attach image which stored on SD-CARD to image view, I can show image with setImageBitmap without any problem but when I try to use Picasso that don't show image

   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);
   }

Solution

  • My code is correct, but when i use wrap_content for width and height of ImageView, i dont see image