Why Picasso debug mode doesn't work?

2019-06-23 23:31发布

问题:

Could anybody tell me, please, why Picasso doesn't indicate debugging? I have following code:

Picasso.with(MyActivity.this.getApplicationContext()).setDebugging(true);
Picasso.with(MyActivity.this.getApplicationContext()).load(message).into(imageView);

And no indication at left-top corner of picture. In the same time, debugging mode works fine in same application with same context (but for different images). Small ones 150x150 are indicated, but large ones (1400x1400) are not. Does the size of images has matter? Thank you!

回答1:

Changed to setIndicatorsEnabled(true);

DEBUG INDICATORS

For development you can enable the display of a colored ribbon which indicates the image source. Call setIndicatorsEnabled(true) on the Picasso instance.

Reference : http://square.github.io/picasso/

Ex:

Picasso picasso = Picasso.with(context);
picasso.setIndicatorsEnabled(true);
//do other stuff
picasso.load(xxx).into(imageView);


回答2:

It works in large images too, but because the resolution of the images are large, you can't see the triangles.



回答3:

now, changed to:

sPicasso.setLoggingEnabled(true);

PICASSO_VERSION=2.5.2