title: BottomSheet below appbar with appbar_scrolling_behaviour
body: <p>I would like to have my <code>bottomsheet</code> expanded only up to <code>appbar</code>. I have <code>viewpager</code> with tabs, and <code>viewpager</code> has <code>appbar_scrolling_view_behavior</code>, so then list inside it is scrolled the <code>toolbar</code> is collapsed. But the bottom sheet is expanded, which is the behaviour I do not want to have. Basically I would like to have collapsed <code>bottomsheet</code> stay in place with the same height, and in expanded mode it should expand only up to <code>toolbar</code>, no matter if the <code>toolbar</code> is collapsed or not.</p>
  
  <p>Here is how my xml looks like. This works, but the bottom sheet also reacts this way to <code>appbar</code> collapsing. </p>
  
  <p>If I remove behaviour from second <code>CoordinatorLayout</code> the <code>bottomsheet</code> stays in place, but gets expanded to full screen.</p>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout android:id="@+id/coordinator"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="?attr/colorPrimary"
              app:layout_scrollFlags="scroll|enterAlways" /&gt;
  
          &lt;android.support.design.widget.TabLayout
              android:id="@+id/tabs"
              android:layout_width="match_parent"
              android:layout_height="wrap_content" /&gt;
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;FrameLayout
          android:id="@+id/loadingContainer"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
        ... content with viewpager
  
      &lt;/FrameLayout&gt;
  
      &lt;android.support.design.widget.CoordinatorLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
          &lt;LinearLayout
              android:id="@+id/bottomSheet"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              app:behavior_hideable="false"
              app:behavior_peekHeight="55dp"
              app:layout_behavior="@string/bottom_sheet_behavior"/&gt;
  
      &lt;/android.support.design.widget.CoordinatorLayout&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>