滑行RoundedCorners不起作用

zih*_*yef 5 android android-glide

我正在使用Glide v4从Internet加载图像。我将加载的图像转换为圆角。有时它不起作用。我不知道为什么。任何帮助,将不胜感激。

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])
Run Code Online (Sandbox Code Playgroud)

屏幕截图错误