title: CollapsingToolbarLayout content overlap to toolbar
body: <p>I have problem in using CollapsingToolbarLayout. Actually I want to stick the toolbar but the content below it is in parallax mode, so that it can hide on scroll up and view when scroll down. It is happening but my issue is that the content in parallax linearlayout overlap to the tool bar.</p>
  
  <p>I have tried many options add the toolbar and linearlayout in another linear layout with orientation vertical but then collapsingToolbarLayout stop working.</p>
  
  <p>I have also tried by adding android:fitsSystemWindows="true" but its also not solving my problem. My layout code is as given below:</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"
  xmlns:custom="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:fitsSystemWindows="true"
  android:layout_height="match_parent"&gt;
  
  
  &lt;android.support.design.widget.AppBarLayout
      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="?attr/colorPrimary"
          app:layout_scrollFlags="scroll|exitUntilCollapsed"
          app:titleEnabled="false"&gt;
  
          &lt;android.support.v7.widget.Toolbar
              xmlns:android="http://schemas.android.com/apk/res/android"
              xmlns:app="http://schemas.android.com/apk/res-auto"
              android:id="@+id/toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="?attr/colorPrimary"
              android:minHeight="?attr/actionBarSize"
              android:padding="0dp"
              app:contentInsetLeft="0dp"
              app:contentInsetStart="0dp"
              app:layout_collapseMode="pin"
              app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
              app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
              app:titleTextAppearance="@style/ToolbarTitle"/&gt;
  
              &lt;LinearLayout
                  android:fitsSystemWindows="true"
                  android:layout_below="@+id/toolbar"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_gravity="bottom"
                  app:layout_collapseMode="parallax"&gt;
  
                  &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:text="Email"
                      android:textColor="@color/white"
                      android:textSize="70dp"/&gt;
              &lt;/LinearLayout&gt;
  
  
  
      &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  
  &lt;android.support.v4.widget.NestedScrollView
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="#ffe5e5e5"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"&gt;
  
          &lt;android.support.v7.widget.CardView
              xmlns:android="http://schemas.android.com/apk/res/android"
              xmlns:card_view="http://schemas.android.com/apk/res-auto"
              android:id="@+id/placeCard"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_margin="5dp"
              card_view:cardCornerRadius="1dp"
              card_view:cardElevation="3dp"&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:orientation="vertical"
                  android:padding="10dp"&gt;
  
                  &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:text="General"
                      android:textStyle="bold"/&gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="1dp"
                      android:background="@color/gray_transparent3"&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="horizontal"
                      android:paddingTop="10dp"
                      android:weightSum="10"&gt;
  
                      &lt;TextView
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text="Model: "/&gt;
  
                      &lt;TextView
                          android:id="@+id/textViewModel"
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text=""/&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="horizontal"
                      android:paddingTop="5dp"
                      android:weightSum="10"&gt;
  
                      &lt;TextView
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text="SKU: "/&gt;
  
                      &lt;TextView
                          android:id="@+id/textViewSKU"
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text=""/&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="horizontal"
                      android:paddingTop="5dp"
                      android:weightSum="10"&gt;
  
                      &lt;TextView
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text="EAN: "/&gt;
  
                      &lt;TextView
                          android:id="@+id/textViewEAN"
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text=""/&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="horizontal"
                      android:paddingTop="5dp"
                      android:weightSum="10"&gt;
  
                      &lt;TextView
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text="UPC: "/&gt;
  
                      &lt;TextView
                          android:id="@+id/textViewUPC"
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text=""/&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="horizontal"
                      android:paddingTop="5dp"
                      android:weightSum="10"&gt;
  
                      &lt;TextView
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text="Manufacturer: "/&gt;
  
                      &lt;TextView
                          android:id="@+id/textViewManufacturer"
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text=""/&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="horizontal"
                      android:paddingTop="5dp"
                      android:weightSum="10"&gt;
  
                      &lt;TextView
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text="Price: "/&gt;
  
                      &lt;TextView
                          android:id="@+id/textViewPrice"
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text=""/&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="horizontal"
                      android:paddingTop="5dp"
                      android:weightSum="10"&gt;
  
                      &lt;TextView
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text="Quantity: "/&gt;
  
                      &lt;TextView
                          android:id="@+id/textViewQuantity"
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text=""/&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="horizontal"
                      android:paddingTop="5dp"
                      android:weightSum="10"&gt;
  
                      &lt;TextView
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text="Status: "/&gt;
  
                      &lt;TextView
                          android:id="@+id/textViewStatus"
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text=""/&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="horizontal"
                      android:paddingTop="5dp"
                      android:weightSum="10"&gt;
  
                      &lt;TextView
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text="Stock availability: "/&gt;
  
                      &lt;TextView
                          android:id="@+id/textViewStockAvailability"
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text=""/&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="horizontal"
                      android:paddingTop="5dp"
                      android:weightSum="10"&gt;
  
                      &lt;TextView
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text="Total Ordered: "/&gt;
  
                      &lt;TextView
                          android:id="@+id/textViewTotalOrdered"
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="5"
                          android:text=""/&gt;
                  &lt;/LinearLayout&gt;
              &lt;/LinearLayout&gt;
  
          &lt;/android.support.v7.widget.CardView&gt;
  
          &lt;android.support.v7.widget.CardView
              xmlns:android="http://schemas.android.com/apk/res/android"
              xmlns:card_view="http://schemas.android.com/apk/res-auto"
              android:id="@+id/placeCardDescription"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_margin="5dp"
              card_view:cardCornerRadius="1dp"
              card_view:cardElevation="3dp"&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:orientation="vertical"
                  android:padding="10dp"&gt;
  
                  &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:text="Description"
                      android:textStyle="bold"/&gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="1dp"
                      android:background="@color/gray_transparent3"&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;TextView
                      android:id="@+id/textViewHtmlDescription"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:paddingTop="10dp"
                      android:text=""
                      /&gt;
  
  
              &lt;/LinearLayout&gt;
          &lt;/android.support.v7.widget.CardView&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/android.support.v4.widget.NestedScrollView&gt;
  </code></pre>
  
  <p></p>
  
  <p>And the output is like the attached file:
  <a href="https://i.stack.imgur.com/iBscQ.png" rel="nofollow"><img src="https://i.stack.imgur.com/iBscQ.png" alt="enter image description here"></a></p>
  
  <p>I need to that content "Email" will start from bottom of the tool bar with collapse effect.</p>
  
  <p>Please help me to resolve this.</p>