title: layer-list drawable not drawn correctly
body: <p>I am trying to create a simple layer-list drawable for my Android app. When I set the drawable as src of an ImageView it is not drawn correctly:</p>
  
  <pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android" &gt;
      &lt;item android:top="20dp"&gt;
          &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="@color/dark_gray" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  
      &lt;item android:left="20dp"&gt;
          &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="@color/dark_gray" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>Just two ovals with a little offset to each other. Nothing special (just a test) but it does not work.</p>
  
  <p>It seems that <code>android:left|right|bottom|top</code> is the problem. If I use only of of these commands the drawable is drawn correctly. If two or more are used the ImageView stays empty.</p>
  
  <p><strong>Works:</strong></p>
  
  <pre><code>   &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android" &gt;
        &lt;item android:top="20dp"&gt;
           &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="@color/dark_gray" /&gt;
           &lt;/shape&gt;
        &lt;/item&gt;
  
        &lt;item&gt;
           &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="@color/dark_gray" /&gt;
           &lt;/shape&gt;
        &lt;/item&gt;
     &lt;/layer-list&gt;
  </code></pre>
  
  <p><strong>Does NOT work</strong> (like the first example):</p>
  
  <pre><code>   &lt;?xml version="1.0" encoding="utf-8"?&gt;
     &lt;layer-list xmlns:android="..." &gt;
        &lt;item android:top="20dp" android:left="20dp"&gt;
           &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="@color/dark_gray" /&gt;
           &lt;/shape&gt;
        &lt;/item&gt;
     &lt;/layer-list&gt;
  </code></pre>
  
  <p>What is wrong here?</p>
  
  <p><strong>EDIT:</strong> @ Rod_Algonquin
  I use a quite simple layout to test the drawable:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_gravity="center"
      android:background="#aaa" &gt;
  
      &lt;ImageView
          android:id="@+id/image_logo"
          android:layout_width="100dp"
          android:layout_height="100dp"
          android:src="@drawable/testDrawable" &gt;
      &lt;/ImageView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>It seems that the number of <code>android:left|right|bottom|top</code> arguments is not the source of the problem but the concrete value being used.</p>
  
  <p><strong>This drawable works fine and:</strong></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:top="2dp"&gt;
          &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="#0f0" /&gt;  
          &lt;/shape&gt;
      &lt;/item&gt; 
  &lt;/layer-list&gt;
  </code></pre>
  
  <p><strong>This one does not draw anything</strong> (the ImageView is just transparent):</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:top="1dp"&gt;
          &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="#0f0" /&gt;  
          &lt;/shape&gt;
      &lt;/item&gt; 
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>The only difference here is the value of <code>android:top</code>. 1dp does not work. 2dp works without any problem.</p>
  
  <p>Any idea?</p>