一.先来看效果
二,引入依赖
implementation 'com.github.bumptech.glide:glide:4.7.1'
第三步:实际使用
Glide.with(this).load(url)
.apply(RequestOptions.bitmapTransform(new CircleCrop()))
.into(img);
使用picasso
Glide.with(this).load(url)
.transfrom(new CircleTransfrom())
.into(img);