title: How to make toolbar with rounded corners and elevation inside appbarlayout? Like this picture
body: <p>This is my code that I try to create toolbar with rounded corners shown in picture.</p>
  
  <pre><code>&lt;android.support.design.widget.AppBarLayout
      android:id="@+id/appBar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_margin="12dp"
      android:background="@android:color/transparent"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@drawable/bg_actionbar" /&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  </code></pre>
  
  <p>bg_actionbar.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape android:shape="rectangle"
  xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  &lt;solid android:color="@color/white" /&gt;
  &lt;corners android:radius="16dp" /&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/IU4uO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IU4uO.png" alt="This what I&#39;m trying to create"></a>
  <a href="https://i.stack.imgur.com/aPvXX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/aPvXX.png" alt="This is what I&#39;m getting"></a></p>