JcMinarro / RoundKornerLayouts

Round Korner Layouts is an Android library create to build a layout with the round corners
https://jcminarro.github.io/RoundKornerLayouts/
Apache License 2.0
202 stars 36 forks source link

What's the reason to use this over CardView? #22

Closed zunjae closed 4 years ago

zunjae commented 5 years ago

Title

zunjae commented 4 years ago

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>
zunjae commented 4 years ago

Don't mention me. It's annoying.

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