有人可以告诉我,毕加索为什么不指示调试?我有以下代码:
Picasso.with(MyActivity.this.getApplicationContext()).setDebugging(true);
Picasso.with(MyActivity.this.getApplicationContext()).load(message).into(imageView);
Run Code Online (Sandbox Code Playgroud)
在图片的左上角没有任何迹象.同时,调试模式在具有相同上下文的相同应用程序中工作正常(但对于不同的图像).小的150x150表示,但大的(1400x1400)不是.图像的大小是否重要?谢谢!
变成 setIndicatorsEnabled(true);
调查指标
对于开发,您可以启用彩色色带的显示,以指示图像源.在Picasso实例上调用setIndicatorsEnabled(true).
参考:http://square.github.io/picasso/
例如:
Picasso picasso = Picasso.with(context);
picasso.setIndicatorsEnabled(true);
//do other stuff
picasso.load(xxx).into(imageView);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7937 次 |
| 最近记录: |