title: CoordinatorLayout not working properly when content inside NestedScrollView doesn't fill entire screen
body: <p>When there is less data inside the nested scrollview then the view gets stuck to the footer. When it has enough content to show it works as expected. I have a CoordinatorLayout at root which has AppBarLayout and NestedScrollView as child. AppBarLayout has a collapsingToolbarLayout and NestedScrollView has a LinearLayout. </p>
  
  <p><strong>If content inside NestedScrollView is not enough and it can't fill the screen it gets stuck to the footer and I have to scroll in this tiny area to scroll up the appbar</strong>. I hope I'm making some sense. </p>
  
  <p>Here is my layout file</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.v4.widget.NestedScrollView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"
          android:fillViewport="true"&gt;
  
          &lt;!-- Your scrolling content --&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical"
              android:paddingLeft="@dimen/activity_horizontal_margin"
              android:paddingRight="@dimen/activity_horizontal_margin"
              android:paddingTop="@dimen/activity_vertical_margin"
              android:paddingBottom="@dimen/activity_vertical_margin"&gt;
  
              &lt;TextView
                  android:id="@+id/info"
                  android:text="@string/hello_world"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:gravity="center"
                  style="@style/TextAppearance.AppCompat.Large"/&gt;
          &lt;/LinearLayout&gt;
  
      &lt;/android.support.v4.widget.NestedScrollView&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:layout_width="match_parent"
          android:layout_height="@dimen/app_bar_height"
          android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt;
  
          &lt;android.support.design.widget.CollapsingToolbarLayout
              android:id="@+id/collapsingToolbarLayout"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              app:contentScrim="?attr/colorPrimary"
              app:expandedTitleMarginStart="@dimen/expanded_toolbar_title_margin_start"
              app:layout_scrollFlags="scroll|exitUntilCollapsed"&gt;
  
              &lt;ImageView
                  android:id="@+id/profilePic"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:scaleType="centerCrop"
                  android:src="@drawable/avatar_empty"
                  app:layout_collapseMode="parallax"
                  app:layout_collapseParallaxMultiplier="0.7"
                  app:layout_scrollFlags="scroll|enterAlways" /&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/ThemeOverlay.AppCompat.Light"
                  app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
                  app:layout_scrollFlags="scroll|enterAlways"/&gt;
  
          &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>There is something silly I'm doing or there is some xml attribute to help with this. Please help. </p>
  
  <p>Thanks in advance!</p>