Hi I want to draw a custom shape in xml like below. How can I draw following shape in android?
square shape.xml:
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ffffffff"/>
<stroke android:width="3dp"
android:color="@color/white"
/>
<padding android:left="1dp"
android:top="1dp"
android:right="1dp"
android:bottom="1dp"
/>
<corners android:radius="1dp"
android:bottomRightRadius="1dp" android:bottomLeftRadius="1dp"
android:topLeftRadius="1dp" android:topRightRadius="1dp"/>
</shape>

Create a new drawable xml named as
svg:change
pathdatato alter the shape as you prefer...Use it in your layout xml for example like: