第一步:导入依赖
implementation 'com.github.bumptech.glide:glide:4.6.1' //Glide 解析图片,设置圆形
第二步:编写Glide的代码实现圆形图片
Glide.with(context).load(list.get(position).getImgsrc())
.apply(RequestOptions.bitmapTransform(new CircleCrop()))
.into(holder.img);