Zip
Zip

Reputation: 859

Android - use Picasso to load a Bitmap

I'm thinking about loading a bitmap with Picasso like Picasso.load(bitmap) but I didn't find any api using bitmap only url/uri/path. I also check out this: https://github.com/square/picasso/issues/1007

Is there anyway I can load a bitmap from RAM using Picasso?

If I just use imageView.setImageDrawble(), will there be any problems/concerns?

Thanks!!!

Upvotes: 0

Views: 2839

Answers (1)

Salem
Salem

Reputation: 12986

If you already have the bitmap in memory, use setImageDrawable. You should only make sure, when you are loading the bitmap, that it is not too big and needs resizing.

Upvotes: 2

Related Questions