title: What is wrong with my layer-list drawable?
body: <p>I wanted to set a custom drawable to be the android:src of FloatingActionButton in this layout:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:sscce="http://schemas.android.com/apk/res-auto"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
      &lt;android.support.design.widget.FloatingActionButton
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          sscce:fabSize="normal"
          android:src="@drawable/fab_drawable" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I was expecting something like:</p>
  
  <p><a href="https://i.stack.imgur.com/KyGyi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KyGyi.png" alt="enter image description here"></a></p>
  
  <p>But I got:</p>
  
  <p><a href="https://i.stack.imgur.com/BgEq6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BgEq6.png" alt="enter image description here"></a></p>
  
  <p>Here is the custom layer-list drawable, which contains a few shape drawables:</p>
  
  <p><strong>res/drawable/fab_drawable.xml:</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&gt;
          &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="#1AFF00" /&gt; &lt;!-- green --&gt;
              &lt;size android:width="150dp"
                  android:height="150dp"/&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  
  
  
      &lt;item&gt;
          &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="#FC00FF" /&gt; &lt;!-- pink --&gt;
              &lt;size android:width="100dp"
                  android:height="100dp"/&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  
  
  
      &lt;item&gt;
          &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="#0040FF" /&gt; &lt;!-- blue --&gt;
              &lt;size android:width="40dp"
                  android:height="40dp" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  
  
  
      &lt;item&gt;
          &lt;shape android:shape="oval" &gt;
              &lt;stroke android:width="3dp"
                  android:color="#FF0000"/&gt; &lt;!-- red --&gt;
  
              &lt;solid android:color="#FFBF00" /&gt; &lt;!-- yellow --&gt;
              &lt;size android:width="24dp"
                  android:height="24dp" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  
  &lt;/layer-list&gt;
  </code></pre>