title: Add a background image to shape in XML Android
body: <p>How do you add a background image to a shape? The code I tried below but no success:</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" android:padding="10dp"&gt;
  //here is where i need to set the image
  &lt;solid android:color="@drawable/button_image"/&gt;
      &lt;corners
       android:bottomRightRadius="5dp"
       android:bottomLeftRadius="5dp"
       android:topLeftRadius="5dp"
       android:topRightRadius="5dp"/&gt;
   &lt;/shape&gt;
  </code></pre>