title: NestedScrollView height is not match_parent
body: <p>I use <a href="https://github.com/nhaarman/ListViewAnimations" rel="nofollow noreferrer">https://github.com/nhaarman/ListViewAnimations</a> to implement the drag&amp;drop, swipe to delete etc. But there are problems the first image can scroll the list but cannot drag&amp;drop (it drop to the same location and it don't enter the onItemMoved)</p>
  
  <p>The second image I remove the linearLayout. Now I can scroll and drag&amp;drop but the layout is broken.</p>
  
  <p><strong>I think I will measure the whole screen height the directly fix the height of NestedScrollView. But I think it may not a best practice for this problem.
  My question was is there a better way to fix my problems?</strong></p>
  
  <p>The third image I remove the linearLayout and NestedScrollView so user cannot scroll the list.</p>
  
  <p><a href="https://i.stack.imgur.com/SwOaf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SwOaf.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/D1zuY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D1zuY.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/ijxJz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ijxJz.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
            xmlns:app="http://schemas.android.com/apk/res-auto"
            android:id="@+id/drawerLayout"
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent"&gt;
  
  &lt;android.support.design.widget.CoordinatorLayout
          android:id="@+id/rootLayout"
          android:layout_width="match_parent"
          android:background="@color/green_400"
          android:layout_height="match_parent"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
              android:layout_width="match_parent"
              android:layout_height="180dp"
  
              &gt;
  
          &lt;android.support.design.widget.CollapsingToolbarLayout
                  android:id="@+id/collapsingToolbarLayout"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  app:contentScrim="@color/transparent"
                  app:expandedTitleMarginStart="@dimen/expanded_toolbar_title_margin_start"
  
                  app:layout_scrollFlags="scroll|exitUntilCollapsed"
                  &gt;
              &lt;!--app:layout_scrollFlags="scroll|exitUntilCollapsed"|--&gt;
              &lt;ImageView
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:scaleType="centerCrop"
                      android:src="@drawable/header"/&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"
                      android:background="@android:color/transparent"/&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:fillViewport="true"
              android:background="@color/red_600"
              app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
          &lt;LinearLayout
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"&gt;
  
              &lt;com.nhaarman.listviewanimations.itemmanipulation.DynamicListView
                      android:id="@+id/listViewTaskInComplete"
                      android:layout_width="match_parent"
  
                      android:layout_height="match_parent"/&gt;
  
          &lt;/LinearLayout&gt;
  
  
      &lt;/android.support.v4.widget.NestedScrollView&gt;
  
      &lt;include layout="@layout/floating_action_btn"/&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p></p>