libanghui

Results comments of 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 ![screenshot_2015-04-18-17-38-59 1](https://cloud.githubusercontent.com/assets/11782415/7214899/a482c5a4-e5f2-11e4-8015-26c4d5312ddc.png)

This problem is likely to occur twice in a row to perform downloads

``` 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...