首页 > 代码库 > Glide图片框架

Glide图片框架

//加载圆形图片
Glide.with(this).load(WSCAppStatic.WEB_KEFU_PHOTO_URL+ "?usercode=8120000315")
          .asBitmap()
          .centerCrop()
          .into(new BitmapImageViewTarget(iv2) { protected void setResource(Bitmap resource) { RoundedBitmapDrawable circularBitmapDrawable = RoundedBitmapDrawableFactory.create(getApplicationContext()                 .getResources(), resource); circularBitmapDrawable.setCircular(true); iv2.setImageDrawable(circularBitmapDrawable);             }         });

  

Glide图片框架