XML drawable cut corner instead of round

336 Views Asked by At

Similar to the M3 cornerFamily feature, how to achieve it via XML drawables?

enter image description here

Current code

<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="@color/colorWhiteDark_Primary"/>
    <corners android:radius="10dp"/>
</shape>
0

There are 0 best solutions below