gile可以加载处圆角或圆形头像

// 动画 zoom_in



    


glide裁切圆角头像

Glide.with(this)
                .load(R.mipmap.ic_launcher)
                .animate(R.anim.zoom_in) 
                .error(R.mipmap.ic_launcher)
                .into(image);
        //圆形裁剪
        Glide.with(this)
                .load(R.mipmap.ic_launcher)
                .bitmapTransform(new CropCircleTransformation(this))
                .into(image2);
        // //圆角处理
        Glide.with(this)
                .load(R.mipmap.ic_launcher)
                .bitmapTransform(new GrayscaleTransformation(this))//带灰色蒙层
                .bitmapTransform(new RoundedCornersTransformation(this, 30, 0, RoundedCornersTransformation.CornerType.ALL))
                .into(image3);


你可能感兴趣的:(android)