Jas Jas - 3 months ago 15
Android Question

Loading image using Picasso showing colors in corners

I use Picasso library for loading images in my app. But in some images,it shows a colored corner.See the red color in attached image. Does anyone know why this happens? How to sort this out?See the red color here

Code:

Picasso picasso = Picasso.with(getActivity());
picasso.setDebugging(true);
picasso.load(downloadPath+imgDetailPhoto)
.placeholder(R.drawable.no_image)
.error(R.drawable.no_image)
.into(eventImage, new Callback() {
@Override
public void onSuccess() {

}

@Override
public void onError() {
Log.d("Error...", "picasso load error");
Picasso.with(getActivity()).load(R.drawable.no_image).into(eventImage);
}
});

Nas Nas
Answer

Set picasso.setIndicatorsEnabled(false); in your picasso object.

Red color indicates that image is fetched from network.

Green color indicates that image is fetched from cache memory.

Blue color indicates that image is fetched from disk memory.

picasso.setDebugging(true); is deprecated

use picasso.setLoggingEnabled(true);