一、自定义圆形图片:
注意:Glide 依赖版本为4.0.0
Acticity:
Glide.with(this.getApplicationContext())
.load(iconurl)
.apply(new RequestOptions()
.centerCrop()
.priority(Priority.HIGH)
.error(R.mipmap.ic_launcher_round)
.placeholder(R.mipmap.ic_launcher)
.transform(new Formation()))
.into(homeLeft_image);
Class:
新建一个类:
public class Formation extends BitmapTransformation {
@Override
protected Bitm