title: Scaling then rotating a rectangle drawable
body: <p>I would like to scale a rectangle drawable downwards, then rotate it so once it is clipped by the view it resembles a trapezoid with the left side slanted:
  <img src="https://i.stack.imgur.com/RTNzc.png" alt="enter image description here"></p>
  
  <p>The rotation is working fine:</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;rotate
          android:fromDegrees="-19.5"
          android:toDegrees="-19.5"
          android:pivotX="0%"
          android:pivotY="0%"
           &gt;
          &lt;shape
              android:shape="rectangle" &gt;                
              &lt;solid
                  android:color="@android:color/black" /&gt;
          &lt;/shape&gt;
      &lt;/rotate&gt;
  &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>However to prevent a big gap where the rectangle has rotated away from the bottom of the view I want to scale vertically by 200% before the rotation happens. I was hoping that I could do something like this:</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;scale 
          android:scaleWidth="100%"
          android:scaleHeight="200%"
          android:scaleGravity="top"
          &gt;
          &lt;rotate
              android:fromDegrees="-19.5"
              android:toDegrees="-19.5"
              android:pivotX="0%"
              android:pivotY="0%"
               &gt;
              &lt;shape
                  android:shape="rectangle" &gt;                
                  &lt;solid
                      android:color="@android:color/black" /&gt;
              &lt;/shape&gt;
          &lt;/rotate&gt;
      &lt;/scale&gt;
  &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>but this just causes the rectangle to disappear. Does anyone know how best to achieve this?</p>