title: collapsing toolbar layout like google play store
body: <p>i want to make a collapsing toolbar layout like google play store. like this:
  <a href="https://sendvid.com/ugjspx8r" rel="noreferrer">https://sendvid.com/ugjspx8r</a></p>
  
  <p>and here is my layout:
  <a href="http://sendvid.com/s4mx3xem" rel="noreferrer">http://sendvid.com/s4mx3xem</a></p>
  
  <p>how can i do that with new android support library?</p>
  
  <p>here is my layout xml file:</p>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:focusableInTouchMode="true"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:id="@+id/appBarLayout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:fitsSystemWindows="true"&gt;
  
          &lt;android.support.design.widget.CollapsingToolbarLayout
              android:id="@+id/seffafCollapsingToolbarLayout"
              android:layout_width="match_parent"
              android:layout_height="240dp"
              app:expandedTitleMarginEnd="164dp"
              app:expandedTitleMarginStart="148dp"
              app:layout_scrollFlags="scroll|enterAlwaysCollapsed"&gt;
  
              &lt;ImageView
                  android:id="@+id/header"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed"
                  android:src="@drawable/haber_icerik_resim"
                  android:fitsSystemWindows="true"
                  android:scaleType="centerCrop"
                  app:layout_collapseMode="parallax" /&gt;
  
              &lt;android.support.v7.widget.Toolbar
                  android:id="@+id/haber_toolbar"
                  android:layout_width="match_parent"
                  android:layout_height="?attr/actionBarSize"
                  app:theme="@style/ToolbarColoredBackArrow"
                  app:layout_collapseMode="pin"
                  app:layout_scrollFlags="scroll|enterAlways"/&gt;
  
          &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
  
  
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/newsRecyclerView"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:scrollbars="vertical"
          android:clickable="true"
          android:background="@color/mainBackground"
          app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>