JcMinarro / RoundKornerLayouts

Round Korner Layouts is an Android library create to build a layout with the round corners

Home Page:https://jcminarro.github.io/RoundKornerLayouts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What's the reason to use this over CardView?

zunjae opened this issue · comments

Title

You can actually use MaterialCardView (same thing as CardView, but Material and more up to date) and specify the corners through your styles file like this

 <style name="MyCardView" parent="@style/Widget.MaterialComponents.CardView">
   <item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.MaterialCardView.Cut</item>
 </style>

<style name="ShapeAppearanceOverlay.MaterialCardView.Cut" parent="">
   <item name="cornerFamily">rounded</item>
   <item name="cornerSizeTopRight">8dp</item>
   <item name="cornerSizeTopLeft">8dp</item>
   <item name="cornerSizeBottomRight">0dp</item>
   <item name="cornerSizeBottomLeft">0dp</item>
 </style>

Don't mention me. It's annoying.

You have proven that this library is useless for ME. Thank you.