我正在使用Glide v4从互联网上加载图片。我将加载的图像转换为圆角。有时它不起作用。我不知道为什么。任何帮助将不胜感激。
val photoCornerRadius = 30
GlideApp.with(context)
.load(postDetail.postImageUrls[i])
.transform(MultiTransformation(CenterCrop(), RoundedCorners(photoCornerRadius)))
.placeholder(R.drawable.ic_image)
.error(R.drawable.ic_image_broken)
.into(ivPhoto[i])