Problem with rounded corners
ali-star opened this issue · comments
I checked your issue with support CardView and FAB and it seemed to work, but with two CardViews it doesn't work just like in your example. Now I'm not sure if it's a bug in Carbon or actually a limitation in Android implementation. Using software renderer Carbon's rounded corners work fine. Here's a screenshot with two support CardViews:
I'll try to confirm one or another option tomorrow with better examples and using a couple of real devices.
for more information, my parent layout is a Framelayout (carbon.widget.Framelayout ) and child layout is a ConstraintLayout (carbon.widget.ConstraintLayout), I hope this Issue will be fixed soon, thank you for support.
Unfortunately, this issue won't be fixed, because it's not Carbon, but Android framework. Today I reproduced your issue using two support CardViews on a clean project and a Samsung phone with Android 7.
If you wish, you can switch these Carbon widgets to software mode by using view.setRenderingMode(RenderingMode.Software)
. In software mode the clipping works fine.