//Glide设置图片圆角角度
RoundedCorners roundedCorners = new RoundedCorners(50);
//通过RequestOptions扩展功能,override:采样率,因为ImageView就这么大,可以压缩图片,降低内存消耗
// RequestOptions options = RequestOptions.bitmapTransform(roundedCorners).override(20, 20);
RequestOptions options = RequestOptions.bitmapTransform(roundedCorners);
Glide.with(mContext).load(mUrlList.get(position % mUrlList.size())).apply(options).into(iv);
Glide sets the 4 corners of the picture to be rounded
Guess you like
Origin blog.csdn.net/qq_36158551/article/details/107026017
Recommended
Ranking