title: Curved android toolbar with shadow
body: <p>I need to have a curved bottom view for Toolbar or CardView. </p>
  
  <p>What I've tried:</p>
  
  <p>bg_toolbar.xml</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="rectangle" /&gt;
      &lt;/item&gt;
      &lt;item
              android:bottom="0dp"
              android:left="-100dp"
              android:right="-100dp"
              android:top="-80dp"&gt;
          &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="@color/colorAccent" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>Setting this as a background to toolbar voids the appbar elevation (shadow). Also if this background is applied to a CardView background is set but the shadow is not according to shape of the background.</p>
  
  <p>See the below image, I want the shadow to wrap around the curve.</p>
  
  <p><a href="https://i.stack.imgur.com/rdFM2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rdFM2.png" alt="Problem is clear in the image"></a></p>