ZieIony / Carbon

Material Design implementation for Android 4.0+. Shadows, ripples, vectors, fonts, animations, widgets, rounded corners and more.

Home Page:https://androidreclib.wordpress.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with rounded corners

ali-star opened this issue · comments

screenshot_20180816-085121
when using a layout with rounded corners and child view's with rounded corners too parent layout doesn't clipping child view's with it's corner radius. any help?

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:

image

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.