-
Notifications
You must be signed in to change notification settings - Fork 82
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
white space when put image inside CardView with radius #36
Comments
Did you check with API > 21? |
Hi @Kishanjvaghela : yes, I checked it. It works like a charm with API >= 21. |
Can you share me your code? |
Hi @Kishanjvaghela , I am really sorry for the late comment. I prepare a code to reproduce this issue. /**
Here is the screenshot of Android Version 4.4 and 5.0: As you can see, in the Android version 4.4 there are something strange: 1/ Height and width of card view equal height and width of the image: Only the top left corner has border radius 2/ Remove height and width of card view, keep height and width of image: border radius affect all corner of image, but there will be extra white space The working case: If you need any information, please let me know. I am willing to hear from you. Thank you for your library. It is great because it can solve the shadow issue in Android < 5.0, which can not be done by react native. |
Are you using v2.0.2? |
@Kishanjvaghela : yes, I am |
Any update of this issue? |
no, I plan to create 2 layers. One is for shadow and one is for image |
same issue with |
Describe the bug
In Android version 4.4. I make an image with radius 16 and put it inside the CardView with radius 16 too.
The result:
Image and CardView both have radius 16.
CardView without style attribute:
Image is from Berry Good
CardView with style attribute:
Expected behavior
I wish the CardView can wrap my image without any white space
Smartphone (please complete the following information):
If you need any information, please let me know. Thank you very much for your great hard-working
The text was updated successfully, but these errors were encountered: