With ImageView
, I can use the following code to download image with callback
Picasso.with(activity).load(url).into(imageView, new Callback()
{
@Override
public void onSuccess()
{
// do something
}
@Override
public void onError() { }
);
Or simply get the Bitmap from this Picasso.with(activity).load(url).get();
. Is there anyway to add callback for just download the image? If possible please provide sample code, Cheers!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…