I am using Glide v4 to load image from internet. I transform the loaded image to be rounded corners. Sometime it doesn't work. I dont have any idea why. Any help would be appreciated.
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])