title: Android: How to create exact material design shadow with XML drawable
body: <p>I would like to make an XMl drawable file that resembles as closely as possible to the material design elevation found on Lollipop and above. I currently have a shadow that does not even come close as I have no  idea what gradient I'm suppose to use. <a href="https://i.stack.imgur.com/DY9OK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DY9OK.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item&gt;
      &lt;shape android:shape="rectangle"&gt;
          &lt;gradient android:angle="90"
              android:endColor="@android:color/darker_gray" 
              android:startColor="#ccc" /&gt;
          &lt;corners android:radius="0.1dp"
              android:bottomLeftRadius="3dp"
              android:bottomRightRadius="3dp"
              android:topLeftRadius="3dp"
              android:topRightRadius="3dp"/&gt;
      &lt;/shape&gt;
  &lt;/item&gt;
  &lt;item
      android:left="1.5dp"
      android:right="1.5dp"
      android:top="1.5dp"
      android:bottom="1.5dp"&gt;
  
      &lt;shape android:shape="rectangle"&gt;
  
  &lt;solid android:color="@android:color/white" /&gt;
  
  &lt;corners
      android:radius="0.1dp"
      android:bottomLeftRadius="3dp"
      android:bottomRightRadius="3dp"
      android:topLeftRadius="3dp"
      android:topRightRadius="3dp" /&gt;
  &lt;/shape&gt;
  &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>Can someone come up with a solution that is at least better than mine? Thank you.</p>