// 动画 zoom_in
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true">
<scale
android:duration="@android:integer/config_longAnimTime"
android:fromXScale="0.1"
android:fromYScale="0.1"
android:pivotX="30%"
android:pivotY="30%"
android:toXScale="1.0"
android:toYScale="1.0"/>
</set>
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);