8

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

Screen shoot bug

Zoe stands with Ukraine
  • 25,310
  • 18
  • 114
  • 149
zihadrizkyef
  • 1,652
  • 2
  • 17
  • 39
  • the image on the left looks like its closer. makes me think that the image is "overhanging" on the imageview which could be the reason for this. – letsCode Apr 11 '18 at 14:53
  • The code is the same – zihadrizkyef Apr 12 '18 at 00:21
  • I've also occurred this strange behaviour [here on your issue](https://github.com/bumptech/glide/issues/3020#issuecomment-576363866) @zihadrizkyef have you found the workaround? and could you open the github issue again? – mochadwi Jan 20 '20 at 17:24
  • 1
    I this glide issue or maybe the XMLs issue? @zihadrizkyef I've found a workaround but only support for API level 23, [see here for my answer](https://stackoverflow.com/a/59830197/3763032) – mochadwi Jan 20 '20 at 20:17

0 Answers0