圆形图片一行代码实现

1.导依赖   
 compile 'com.github.bumptech.glide:glide:4.3.1'
 
 
 2.添加网络权限
 
 
 
 
 //一行代码直接实现
 //注意的地方:ming改成自己的ImageView变量名

   Glide.with(this).load(photo).apply(RequestOptions.bitmapTransform(new CircleCrop())).into(ming);

猜你喜欢

转载自blog.csdn.net/mester_zxh/article/details/80926555