title: CollapsingToolbarLayout leaving empty space below Recyclerview
body: <p>I'm having this strange issue with CoordinatorLayout and RecyclerView.</p>
  
  <p>As you can see in the image, the RecyclerView is leaving an empty blank space below it with the <strong>exact same height</strong> as declared for CollapsingToolbarLayout's minHeight attribute.</p>
  
  <p>If I don't declare this attribute, the <strong>linear_navigation</strong> LinearLayout won't remain pinned to the top of the screen (and that's the desired behaviour).</p>
  
  <p>I'm I missing something? Here's the layout's code and some screenshots.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><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:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:id="@+id/appbar_profile"
          android:layout_width="match_parent"
          android:layout_height="@dimen/profile_header_height"
          android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt;
  
          &lt;android.support.design.widget.CollapsingToolbarLayout
              android:id="@+id/collapsing_header"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:minHeight="?attr/actionBarSize"
              app:layout_scrollFlags="scroll|exitUntilCollapsed"&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_centerInParent="true"
                  android:background="@drawable/bg_welcome"
                  android:orientation="vertical"
                  app:layout_collapseMode="parallax"&gt;
  
                  &lt;com.tourwhiz.pro.widgets.TextViewComfortaaBold
                      android:id="@+id/text_username"
                      style="@style/TextViewTW.Title"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_margin="@dimen/view_size_normal"
                      android:gravity="center"
                      android:text="Juancho"
                      android:textSize="@dimen/text_size_medium" /&gt;
  
                  &lt;LinearLayout
                      android:id="@+id/linear_settings"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:gravity="center"&gt;
  
                      &lt;ImageView
                          android:id="@+id/image_settings"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:src="@drawable/ic_settings_white" /&gt;
  
                      &lt;de.hdodenhof.circleimageview.CircleImageView
                          android:id="@+id/image_user"
                          android:layout_width="@dimen/profile_image_radious"
                          android:layout_height="@dimen/profile_image_radious"
                          android:layout_margin="@dimen/view_size_normal"
                          android:src="@drawable/madrid_01"
                          app:civ_border_color="@color/karma_aqua_blue"
                          app:civ_border_width="@dimen/view_size_tiny" /&gt;
  
                      &lt;ImageView
                          android:id="@+id/image_edit"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:src="@drawable/ic_mode_edit_white" /&gt;
                  &lt;/LinearLayout&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:id="@+id/linear_navigation"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_gravity="bottom"
                  app:layout_collapseMode="pin"
                  android:background="@color/white"
                  android:orientation="horizontal"&gt;
  
                  &lt;LinearLayout
                      android:id="@+id/linear_posts"
                      android:layout_width="0dp"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:orientation="vertical"
                      android:padding="@dimen/view_size_normal"&gt;
  
                      &lt;com.tourwhiz.pro.widgets.TextViewLatoRegular
                          style="@style/TextViewTW"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:gravity="center"
                          android:text="@string/profile_posts_text"
                          android:textSize="@dimen/text_size_large" /&gt;
  
                      &lt;com.tourwhiz.pro.widgets.TextViewLatoRegular
                          android:id="@+id/text_posts_count"
                          style="@style/TextViewTW"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:gravity="center"
                          android:textSize="@dimen/text_size_large"
                          tools:text="1456" /&gt;
  
                  &lt;/LinearLayout&gt;
  
                  &lt;View
                      android:layout_width="@dimen/separator_height"
                      android:layout_height="match_parent"
                      android:layout_marginBottom="@dimen/text_size_normal"
                      android:layout_marginTop="@dimen/text_size_normal"
                      android:background="@color/dark_grey" /&gt;
  
                  &lt;LinearLayout
                      android:id="@+id/linear_friends"
                      android:layout_width="0dp"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:orientation="vertical"
                      android:padding="@dimen/view_size_normal"&gt;
  
                      &lt;com.tourwhiz.pro.widgets.TextViewLatoRegular
                          style="@style/TextViewTW"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:gravity="center"
                          android:text="@string/profile_friends_text"
                          android:textSize="@dimen/text_size_large" /&gt;
  
                      &lt;com.tourwhiz.pro.widgets.TextViewLatoRegular
                          android:id="@+id/text_friends_count"
                          style="@style/TextViewTW"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:gravity="center"
                          android:textSize="@dimen/text_size_large"
                          tools:text="1" /&gt;
  
                  &lt;/LinearLayout&gt;
  
                  &lt;View
                      android:layout_width="@dimen/separator_height"
                      android:layout_height="match_parent"
                      android:layout_marginBottom="@dimen/text_size_normal"
                      android:layout_marginTop="@dimen/text_size_normal"
                      android:background="@color/dark_grey" /&gt;
  
                  &lt;LinearLayout
                      android:id="@+id/linear_reviews"
                      android:layout_width="0dp"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:orientation="vertical"
                      android:padding="@dimen/view_size_normal"&gt;
  
                      &lt;com.tourwhiz.pro.widgets.TextViewLatoRegular
                          style="@style/TextViewTW"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:gravity="center"
                          android:text="@string/profile_reviews_text"
                          android:textSize="@dimen/text_size_large" /&gt;
  
                      &lt;com.tourwhiz.pro.widgets.TextViewLatoRegular
                          android:id="@+id/text_reviews_count"
                          style="@style/TextViewTW"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:gravity="center"
                          android:textSize="@dimen/text_size_large"
                          tools:text="12" /&gt;
  
                  &lt;/LinearLayout&gt;
              &lt;/LinearLayout&gt;
          &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/recycler_posts"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_gravity="bottom"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"
          tools:listitem="@layout/item_post" /&gt;
  
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/TbWWk.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TbWWk.jpg" alt="The blank bottom space is the problem"></a></p>