title: Collapse content instead of scrolling when CollapsingToolbarLayout is expanded
body: <p>I've created a simple project with Android's <code>CollapsingToolbarLayout</code>, this is its structure (full layout source on the bottom of the question):</p>
  
  <pre><code>CoordinatorLayout
    AppBarLayout
      CollapsingToolbarLayout
        Toolbar
    RelativeLayout (layout_behavior="@string/appbar_scrolling_view_behavior")
      TextView (layout_alignParentTop="true")
      TextView (layout_alignParentBottom="true")
  </code></pre>
  
  <p>When I'm expanding/collapsing the bar, the view is scrolled and bottom view goes beyond the screen:
  <a href="https://i.stack.imgur.com/cDTC3.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/cDTC3.gif" alt="enter image description here"></a></p>
  
  <p>What I'm going to achieve is collapsing/shrinking (instead of scrolling) the content (my <code>RelativeLayout</code>) in the way that bottom text always stays visible:</p>
  
  <p><a href="https://i.stack.imgur.com/XdPTD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XdPTD.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/DDAyM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DDAyM.png" alt="enter image description here"></a></p>
  
  <p>How can I do it on the Android?</p>
  
  <p>This is my full layout:</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="match_parent"
      android:fitsSystemWindows="true"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:layout_width="match_parent"
          android:layout_height="@dimen/app_bar_height"
          android:fitsSystemWindows="true"
          android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
          &lt;android.support.design.widget.CollapsingToolbarLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:fitsSystemWindows="true"
              app:contentScrim="?attr/colorPrimary"
              app:layout_scrollFlags="scroll|exitUntilCollapsed"
              app:toolbarId="@+id/toolbar"&gt;
  
              &lt;android.support.v7.widget.Toolbar
                  android:id="@+id/toolbar"
                  android:layout_width="match_parent"
                  android:layout_height="?attr/actionBarSize"
                  app:layout_collapseMode="pin"
                  app:popupTheme="@style/AppTheme.PopupOverlay"/&gt;
  
          &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentTop="true"
              android:text="The text on the top"
              android:textSize="32sp"/&gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:text="The text on the bottom"
              android:textSize="32sp"/&gt;
      &lt;/RelativeLayout&gt;
  
   &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>