2016-01-24 91 views
5

我使用畢加索圖書館從服務器加載圖像到我的應用程序。我的問題是,當圖像加載它有一個三角形圖像的左上角與顏色(如藍色,綠色,紅色)。 這是我加載圖片代碼:畢加索加載圖像的三角形在圖像的角落

public static void loadDynamicImage(final String url, final Context context, final ImageView imageView, final int width, final int height){ 
    Picasso.with(context).load(url) 
      .networkPolicy(NetworkPolicy.OFFLINE) 
      .resize(width,height) 
      .onlyScaleDown() 
      .into(imageView, new Callback() { 
       @Override 
       public void onSuccess() { 

       } 

       @Override 
       public void onError() { 
        Picasso.with(context).load(url).resize(width,height).onlyScaleDown().into(imageView); 
       } 
      }); 
} 

顯示的圖像是: the image that picasso loads in application

+0

這是無論是從'setDebugging(真)'或'setIndicatorsEnabled(真)'。 – CommonsWare

+0

[畢加索顯示頂部角落處的藍色紅色和綠色箭頭]的可能副本(http://stackoverflow.com/questions/34757949/picasso-showing-blue-red-and-green-arrows-on-top-corner) – naXa

回答

17

您已經啓用了調試指標上的畢加索實例(official website)。在代碼中查找setIndicatorsEnabled(true)並將其刪除。