1引入glide
implementation 'com.github.bumptech.glide:glide:4.7.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
2加联网,读写权限
3使用glide,ivIcon为imageView
Glide.with(this).load("https://hailab.haierbiomedical.com/img/profile.jpg")
.apply(com.bumptech.glide.request.RequestOptions.circleCropTransform())
.into(ivIcon);