title: Bitmap image with rounded corners with stroke
body: <p>I have a image with sharp edges.  <img src="https://i.stack.imgur.com/P0j9S.jpg" alt="enter image description here"></p>
  
  <p>the tile_mode.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;bitmap xmlns:android="http://schemas.android.com/apk/res/android"
      android:src="@drawable/background"
      android:tileMode="repeat"&gt;
  &lt;/bitmap&gt;
  </code></pre>
  
  <p>the back.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;  
         &lt;item android:drawable="@drawable/tile_mode" /&gt;
      &lt;item&gt;
          &lt;shape&gt;
              &lt;solid/&gt;
              &lt;stroke android:width="1dip" android:color="#225786" /&gt;
              &lt;corners android:radius="10dip"/&gt;
              &lt;padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt; 
  </code></pre>
  
  <p>layout.xml</p>
  
  <pre><code>&lt;LinearLayout
                  android:id="@+id/frame1"
                  android:background="@drawable/back"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"&gt;
              &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I am setting the image as a background to this layout and drawing a border to it but the problem is the image is square with sharp edges and the border which I am drawing in the xml is rounded corners. So how to make the image also with rounded corners?</p>