title: Persistent BottomSheet below ActionBar
body: <p>I have an app layout with a custom <code>toolbar</code> and a persistent <code>BottomSheet</code> - both inside of a <code>CoordinatorLayout</code>.</p>
  
  <p>On a button click I want to show the <code>BottomSheet</code>. Right now the sheet is displayed fullscreen and overlays the <code>toolbar</code>. By setting the app theme to <code>Theme.AppCompat.Light.DarkActionBar</code> the <code>BottomSheet</code> stays below the <code>ActionBar</code>, but the bar cannot be customized.</p>
  
  <p>Is there a way to limit the height of the persitent <code>BottomSheet</code> to fullscreen - <code>ActionBar</code> height?</p>
  
  <p>This is my code in <code>activity_main.xml</code></p>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:attrs="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.test.MainActivity"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:layout_width="match_parent"
          app:elevation="20dp"
          android:elevation="20dp"
          android:layout_height="?attr/actionBarSize"&gt;
  
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/toolbar"
              app:elevation="20dp"
              android:elevation="20dp"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="?attr/colorPrimary"/&gt;
      &lt;/android.support.design.widget.AppBarLayout&gt;
      &lt;/LinearLayout&gt;
      &lt;include layout="@layout/bottom_sheet_additem"/&gt;
  &lt;/CoordinatorLayout&gt;
  </code></pre>
  
  <p>Here is the code of <code>sheet_bottom.xml</code></p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:id="@+id/bottomSheetLayout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/colorAccent"
      app:behavior_hideable="true"
      app:behavior_peekHeight="0dp"
      android:fitsSystemWindows="true"
      app:layout_behavior="@string/bottom_sheet_behavior"&gt;
  
      &lt;TextView
          android:id="@+id/bottomsheet_text"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:text="Lorem Ipsum Dolor..."
          android:textColor="#FFFFFF" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/oMNBW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/oMNBW.png" alt="Screenshot"></a>
  The image on the left hand side shows the <code>BottomSheet</code> which stops below the <code>Toolbar</code> - which is not working with my current code. Currently it looks like the picture on the right.</p>