MaterialList icon indicating copy to clipboard operation
MaterialList copied to clipboard

Using picasso along with BigImageCard

Open YazanKittaneh opened this issue 9 years ago • 4 comments

I want to use Picasso to load the images efficiently onto a BigImageCard. My issue is that card.setDrawable() takes in a drawable/drawableBitmap, but Picasso uses a .into() method to inject the image into a imageview.

I can't find a way to get it to work with a card, would you have any idea?

YazanKittaneh avatar Sep 03 '15 17:09 YazanKittaneh

Never mind, I was able to do it with Picasso Targets. FYI with anyone with a similar issue

src: http://stackoverflow.com/questions/20181491/use-picasso-to-get-a-callback-with-a-bitmap

YazanKittaneh avatar Sep 03 '15 18:09 YazanKittaneh

Picasso loading is already implemented by passing a String (URL of the image).

Or are you talking about a local resource drawable?

dexafree avatar Sep 03 '15 19:09 dexafree

No I wasn't talking about local drawables. I wasn't aware of that (makes a couple of my hours of my life moot).

Thanks for letting me know!

YazanKittaneh avatar Sep 03 '15 20:09 YazanKittaneh

With #98 PR you can use the setDrawable(string) and setDrawable(int) with Picasso.

FHellmann avatar Sep 07 '15 16:09 FHellmann