title: How do I add padding to a bitmap and a color in a layer-list
body: <p>I need to create a drawable with a layer-list such that the background layer is an image and the foreground is a transparent color. I am able to do that. Where I am not succeeding is adding some padding/margin so that at them bottom a piece of the images shows without the colored layer on top of it. Here is my xml. Thanks for helping.</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&gt;
      &lt;bitmap android:src="@drawable/img1" 
          /&gt;
    &lt;/item&gt;
  
    &lt;item&gt;
      &lt;shape
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:shape="rectangle" &gt;
        &lt;solid android:color="@color/color1" /&gt;
        &lt;padding android:bottom="20dp" /&gt;
      &lt;/shape&gt;
    &lt;/item&gt;
  
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>Since this configuration is not working, my guess is to put the padding in the first layer. But I am not sure how to do that with a bitmap</p>