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?
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);
}
});
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);
you have to disable indicators by calling the method picasso.setIndicatorsEnabled(false)
the ribbon is mean to show the image source. hope it helps
check this link, under the Debug Indicators they've mentioned it clearly
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With