Yes, I am using Picasso to load a bitmap. The reason is I am decoding URIs in one part of my adapter, and loading bitmaps in another, and I read here that
You should always call Picasso, even if your URL is null. This way it knows that the image view was recycled.
So I tried this….
Bitmap bitMap;
...
Picasso.with(getContext())
.load(bitMap)
.into(imageView);
But I got this error
cannot resolve method 'load(android.graphics.Bitmap)'
Best Answer
You cant put Bitmap for load method of
Picasso
. You can use onlyuri , file , url path and int resource id
.If You are downloading image from url then you can do like as below code:
For other resource its same, only
load
methodparameter
would gets changed depending on theresource
you are using.