Why Picasso debug mode doesn't work?

主宰稳场 提交于 2019-12-23 13:06:26

问题


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



来源:https://stackoverflow.com/questions/23565943/why-picasso-debug-mode-doesnt-work

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!