Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Picasso debug mode doesn't work?

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!

like image 275
Catherine Ivanova Avatar asked May 09 '14 13:05

Catherine Ivanova


People also ask

What is Picasso in Android studio?

Picasso allows for hassle-free image loading in your application—often in one line of code! Picasso. get(). load("https://i.imgur.com/DvpvklR.png").into(imageView);


2 Answers

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);
like image 132
Basbous Avatar answered Oct 01 '22 09:10

Basbous


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

like image 44
Ayush Kumar Avatar answered Oct 01 '22 09:10

Ayush Kumar