title: Vector Drawable inside Layer-list is stretching
body: <p>When I use a layer-list with a vector-drawable inside, it works fine on API 23+ but not prior.</p>
  
  <p>I have enabled <code>vectorDrawables.useSupportLibrary = true</code> and <code>AppCompatDelegate.setCompatVectorFromResourcesEnabled(true)</code>, yet the drawable is very stretched.</p>
  
  <p><a href="https://i.stack.imgur.com/UbBEH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UbBEH.png" alt="Left is Oreo 26 and right is Lollipop 21"></a></p>
  
  <p>Left is Oreo 26 and right is Lollipop 21</p>
  
  <p>This is the drawable</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;layer-list&gt;
              &lt;item&gt;
                  &lt;shape&gt;
                      &lt;stroke android:width="0.9dp" android:color="@color/colorPrimaryDark" /&gt;
                      &lt;solid android:color="#FFF" /&gt;
                      &lt;corners android:radius="16dp" /&gt;
                  &lt;/shape&gt;
              &lt;/item&gt;
  
              &lt;item android:drawable="@drawable/arrow_drawable" android:gravity="center_vertical|left" android:left="18dp" /&gt;
          &lt;/layer-list&gt;
  </code></pre>
  
  <p>And this is where the drawable is applied</p>
  
  <pre><code>&lt;Spinner
          android:id="@+id/countrySpinner"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:background="@drawable/spinner_background"
          android:popupBackground="@drawable/spinner_dropdown_background"
          android:popupElevation="4dp"
          app:popupTheme="@style/PopupTheme"
          app:layout_constraintBottom_toTopOf="@id/citySpinner"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent"
          app:layout_constraintWidth_percent="0.8" /&gt;
  </code></pre>
  
  <p>It's inside a ConstraintLayout, but I can't post the whole layout file.</p>
  
  <p>What can I do to fix the stretching Pre API 23?
  Would creating the whole layer-list in code be any different?</p>
  
  <p><strong>Edit:</strong> I did try it before, but forgot to add it.
  I did try the following xml</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;layer-list&gt;
              &lt;item&gt;
                  &lt;shape&gt;
                      &lt;stroke android:width="0.9dp" android:color="@color/colorPrimaryDark"/&gt;
                      &lt;solid android:color="#FFF"/&gt;
                      &lt;corners android:radius="16dp"/&gt;
                  &lt;/shape&gt;
              &lt;/item&gt;
  
              &lt;item android:left="18dp"&gt;
                  &lt;bitmap android:src="@drawable/arrow_drawable" android:gravity="center_vertical|left"/&gt;
              &lt;/item&gt;
          &lt;/layer-list&gt;
  </code></pre>
  
  <p>But this made the app crash as soon as it starts saying <code>android.content.res.Resources$NotFoundException: File res/drawable/spinner_background.xml from drawable resource ID #0x7f0700de</code> Which is probably not alot of sense. And this is what the preview in Android Studio shows</p>
  
  <p><a href="https://i.stack.imgur.com/1Wf9q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1Wf9q.png" alt="enter image description here"></a></p>