-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RoundedCorners not work #96
Comments
@mt131 Could you add more details about it? |
it is an imageView in a recycleview
override fun onBindViewHolder(holder: Song2Holder, position: Int) {
|
it is not work in 1 project but working in other project now |
It is not working fine for me either. It is my ImageView xml:
|
The RoundedCornersTransformation does work, but what I found while testing is that the source Bitmap is rounded, not the ImageView itself (which is probably what you're expecting). So if the image ends up rounded, then scaled into the Imageview via centercrop (the ScaleType you specified), you'll lose those corners. I was also expecting "RoundedCornersTransformation" to round the image post-scaling so you see those transformations in the view itself. |
@FrostRocket Yep, it's "technically" working, though definitely not the desired behaviour. Tracking the fix here. |
holder.imageViewCover.scaleType = ImageView.ScaleType.CENTER_CROP
holder.imageViewCover.load(producList[position].cover_image) {
transformations(RoundedCornersTransformation(32f))
}
but the image is not rounded conner
The text was updated successfully, but these errors were encountered: