title: How to draw a rectangle with rounded corners using XML?
body: <p>Here is markup snippet for drawing rectangle with four rounded corners:</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="rectangle"&gt;
  
      &lt;solid android:color="#fff"&gt;&lt;/solid&gt;
  
      &lt;padding
          android:bottom="5dp"
          android:left="-1dp"
          android:right="-1dp"
          android:top="5dp"&gt;&lt;/padding&gt;
  
      &lt;corners android:radius="2dp"&gt;&lt;/corners&gt;
  
  &lt;/shape&gt;
  </code></pre>
  
  <p>But if I want to round the corners on one side only (two corners), how can I do it?</p>
  
  <p>Thanks.</p>