Bitwise DEVS
Bitwise DEVS

Reputation: 3449

XML drawable cut corner instead of round

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>

Upvotes: 1

Views: 436

Answers (0)

Related Questions