title: How to create bottomsheet with toolbar when expanded,
body: <p>I want to create bottom sheet layout, which when expanded to full screen should display toolbar. I have used following code but it is displaying toolbar even if its not expanded to full screen.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.design.widget.CoordinatorLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="bottom"
      app:layout_behavior="@string/bottom_sheet_behavior"&gt;
  
      &lt;include
          android:id="@+id/search_tab_toolbar"
          layout="@layout/search_tablayout"/&gt;
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="50dp"
          android:id="@+id/search_tab_toolbar"
          android:background="@color/accent"/&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/recyclerView"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          /&gt;
  
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>