为什么Picasso调试模式不起作用? [英] Why Picasso debug mode doesn't work?

查看:100
本文介绍了为什么Picasso调试模式不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问有人,为什么毕加索不显示调试信息? 我有以下代码:

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);

在图片的左上角没有指示.同时,调试模式可以在具有相同上下文(但用于不同映像)的相同应用程序中正常运行.指出的是小尺寸的150x150,但没有注明大尺寸的(1400x1400).图像的大小有关系吗? 谢谢!

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!

推荐答案

更改为setIndicatorsEnabled(true);

调试指标

对于开发,您可以启用显示图像来源的彩色丝带显示.在Picasso实例上调用setIndicatorsEnabled(true).

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

参考资料: http://square.github.io/picasso/

例如:

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

这篇关于为什么Picasso调试模式不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆