Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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);
                    }
                });
like image 417
Jas Avatar asked Nov 30 '15 12:11

Jas


2 Answers

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

like image 127
Nas Avatar answered Sep 23 '22 19:09

Nas


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

like image 43
droidev Avatar answered Sep 19 '22 19:09

droidev