I want to create a rectangle shape in XML, it needs a curved shape. Is this possible with the XML markup or programmatically?
the code i have now:
<?xml version="1.0" encoding="UTF-8" ?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<corners
android:topLeftRadius="45dp"
android:topRightRadius="45dp"
android:bottomLeftRadius="45dp"
android:bottomRightRadius="45dp" />
<solid
android:color="#4F4F4F" />
<stroke
android:width="3dp"
android:color="#878787" />
</shape>
Can someone help me out?
My idea is as followed:
The rectangle has to be transformed with a curve.