libanghui
libanghui
I load the local picture, no matter what size I am down to is invalid, but the display picture clarity Document which said that only support scaling jpeg format, but...
Request.Builder requestBuilder = new Request.Builder() .url(url.toStringUrl()); for (Map.Entry headerEntry : url.getHeaders().entrySet()) { requestBuilder.addHeader(headerEntry.getKey(), headerEntry.getValue()); } Request request = requestBuilder.build(); ``` Response response = client.newCall(request).execute(); responseBody = response.body(); if (!response.isSuccessful()) {...
Search out or have a problem with a specific solution to get the code
Photos can not be displayed in full or download
Download the picture sometimes is not complete
``` java ivHd.getLayoutParams().width = Device.getWidth(); ivHd.getLayoutParams().height = Device.getWidth()*15/32; Glide.with(WeiBoListNewActivity.this).load(hd.ImageUrl).placeholder(R.color.guidColor).error(R.color.guidColor) .override(Device.getWidth(), Device.getWidth()*15/32) .crossFade().diskCacheStrategy(DiskCacheStrategy.SOURCE).centerCrop() .transform(new BitmapTransformation(WeiBoListNewActivity.this) { @Override public String getId() { return Device.getMD5String(hd.ImageUrl); } @Override protected Bitmap transform(BitmapPool arg0, Bitmap source,...
thank you 
This problem is likely to occur twice in a row to perform downloads
use okhttp
``` java ivHd.getLayoutParams().width = Device.getWidth(); ivHd.getLayoutParams().height = Device.getWidth()*15/32; Glide.with(WeiBoListNewActivity.this, null).load(hd.ImageUrl).placeholder(R.color.guidColor).error(R.color.guidColor) .override(Device.getWidth(), Device.getWidth()*15/32) .crossFade().diskCacheStrategy(DiskCacheStrategy.SOURCE).centerCrop() .transform(new BitmapTransformation(WeiBoListNewActivity.this) { @Override public String getId() { return Device.getMD5String(hd.ImageUrl); } @Override protected Bitmap transform(BitmapPool arg0, Bitmap...