title: Fading the whole layout as scrolled up in collapsing bar layout android
body: <p>Below is the code of my coordinator layout. It works well.</p>
  
  <pre><code> &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:id="@+id/appbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:fitsSystemWindows="true"
          android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt;
  
          &lt;android.support.design.widget.CollapsingToolbarLayout
              android:id="@+id/collapsing_toolbar"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:fitsSystemWindows="true"
              app:contentScrim="#f4f4f4"
              app:expandedTitleMarginEnd="16dp"
              app:expandedTitleMarginStart="48dp"
              app:layout_scrollFlags="scroll|exitUntilCollapsed"&gt;
  
              &lt;RelativeLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"&gt;
  
                  &lt;ImageView
                      android:id="@+id/header"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:background="@drawable/echo3"
                      android:fitsSystemWindows="true"
                      android:scaleType="centerCrop" /&gt;
  
                  &lt;RelativeLayout
                      android:layout_width="match_parent"
                      android:layout_height="40dp"
                      android:layout_alignParentBottom="true"
                      android:background="#fff"&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_centerInParent="true"
                          android:text="Private Albums"
                          android:textColor="#000"
                          android:textSize="22sp"
                          android:textStyle="bold" /&gt;
                  &lt;/RelativeLayout&gt;
  
              &lt;/RelativeLayout&gt;
  
              &lt;android.support.v7.widget.Toolbar
                  android:id="@+id/anim_toolbar"
                  android:layout_width="match_parent"
                  android:layout_height="?attr/actionBarSize"
                  app:layout_collapseMode="pin" /&gt;
  
          &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;android.support.v4.widget.NestedScrollView
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:layout_below="@+id/anim_toolbar"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
          &lt;include layout="@layout/content_profile" /&gt;
  
  
          &lt;!--&lt;fragment--&gt;
          &lt;!--android:id="@+id/detail"--&gt;
          &lt;!--android:name="&lt;package&gt;.&lt;fragment_name&gt;"--&gt;
          &lt;!--android:layout_width="match_parent"--&gt;
          &lt;!--android:layout_height="match_parent" /&gt;--&gt;
  
      &lt;/android.support.v4.widget.NestedScrollView&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p><strong>But</strong> I want to fade the whole relative layout as I scroll up it should started fading(Mean whole collapse bar layout). It do fade out at a specific point but I want it to fade out as I scroll up. 
  Thanks, Any help is appreciated.</p>