1

I am trying to create a button background using Android shape drawables. I am trying to have two curves on a rectangle with the one on top being backwards. The background also has a stroke of 3dp which prevents me from using a layer list. This is what I am hoping to create:

<?xml version="1.0" encoding="utf-8"?>
<shape
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle" >
    <corners android:radius="1dp" android:topLeftRadius="-30dp" android:topRightRadius="0dp" android:bottomLeftRadius="30dp" android:bottomRightRadius="0dp"/>
    <size
        android:width="30dp"
        android:height="30dp" />
    <solid
        android:color="@color/very_light_grey"
        />
    <stroke
        android:width="3dp"
        android:color="@color/grey"
        />
</shape>

Is this possible with Android shape drawables?

Is this possible with Android shape drawables?

KevinZ
  • 756
  • 1
  • 12
  • 26

0 Answers0