//加载圆形图片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); } });
时间: 2024-10-06 15:09:20