title: Curved rectangle shape android
body: <p>I want to create a rectangle shape in XML, it needs a curved shape.
  Is this possible with the XML markup or programmatically?</p>
  
  <p>the code i have now:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="rectangle" &gt;
  
      &lt;corners
          android:topLeftRadius="45dp"
          android:topRightRadius="45dp"
          android:bottomLeftRadius="45dp"
          android:bottomRightRadius="45dp" /&gt;
      &lt;solid
          android:color="#4F4F4F" /&gt;
      &lt;stroke
          android:width="3dp"
          android:color="#878787" /&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>Can someone help me out?</p>
  
  <p><img src="https://i.stack.imgur.com/JCTxz.png" alt="enter image description here"></p>
  
  <p>My idea is as followed:</p>
  
  <p><img src="https://i.stack.imgur.com/RD7I0.png" alt="http://i.stack.imgur.com/RD7I0.png"></p>
  
  <p>The rectangle has to be transformed with a curve.</p>