Can I use Picasso library to load images from the filesystem?
I'm using startActivityForResult
to let the user pick a photo from his gallery, and then want to show the selected image.
I already have working code to get the image filesystem Uri
, but can't get the Picasso.load()
method to work.
Image loading using Picasso is very easy, you can do it like this way Picasso. get(). load("http://i.imgur.com/DvpvklR.png").into(imageView); and in their website you can get every details. In your case you can parse every image URL and use RecyclerView to show them along with Picasso.
Glide is faster and the results of Picasso and Coil are similar. But what about when we are loading from the cache. As you can see in the images below we have the best times for Glide in most of the cases.
Android App Development for Beginners Picasso is image processing library and developed by Square Inc.
Of course you can. Its actually pretty straight forward:
File f = new File("path-to-file/file.png");
or
File f = new File(uri); Picasso.get().load(f).into(imageView);
also
Picasso.get().load(uri).into(imageView);
works
Yes you can.
Try:
Picasso.with(context).load(new File(YOUR_FILE_PATH)).into(imageView);
EDIT
You can also call .load(YOUR_URI)
instead as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With