Glide RoundedCorners not works

我只是一个虾纸丫 提交于 2020-01-23 06:34:45

问题


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])

来源:https://stackoverflow.com/questions/49778043/glide-roundedcorners-not-works

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!