title: RecyclerView inside NestedScrollView Android
body: <p>Iam trying to place a RecyclerView inside a NestedScrollView. The problem is that if I place the RecyclerView inside a horizontal LinearLayout, the recycler view shows. But if I place it into Vertical LinearLayout it doesnot show up. Here is something that I have tried:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &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: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:expandedTitleMarginBottom="32dp"
              app:expandedTitleMarginEnd="64dp"
              app:expandedTitleMarginStart="48dp"
              app:layout_scrollFlags="scroll|exitUntilCollapsed"&gt;
              &lt;FrameLayout
                  android:layout_width="match_parent"
                  android:layout_height="80dp"&gt;
                  &lt;android.support.v7.widget.Toolbar
                      android:id="@+id/anim_toolbar"
                      android:layout_width="match_parent"
                      android:layout_height="20dp"
                      android:background="@color/AppBrightRed"
                      app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /&gt;
                  &lt;ImageView
                      android:layout_width="50dp"
                      android:layout_height="50dp"
                      android:src="@drawable/ic_appicon"
                      android:layout_marginLeft="10dp"
                      android:layout_gravity="bottom|left" /&gt;
              &lt;/FrameLayout&gt;
          &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;android.support.v4.widget.NestedScrollView
          android:id="@+id/scroll"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:clipToPadding="false"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
          &lt;LinearLayout
              android:layout_height="wrap_content"
              android:layout_width="match_parent"
              android:orientation="vertical"&gt;
              &lt;fragment
                  android:id="@+id/map"
                  android:layout_width="match_parent"
                  android:layout_height="200dp"
                  android:name="com.google.android.gms.maps.MapFragment"
                  app:layout_collapseMode="parallax" /&gt;
              &lt;android.support.v7.widget.RecyclerView
                  android:id="@+id/recyclerView"
                  android:scrollbars="vertical"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent" /&gt;
          &lt;LinearLayout
                  android:layout_height="wrap_content"
                  android:layout_width="match_parent"
                  android:orientation="horizontal"
                  android:layout_marginTop="10dp"&gt;
                  &lt;AutoCompleteTextView
                      android:layout_height="wrap_content"
                      android:layout_width="180dp"
                      android:hint="LOCATION"
                      android:id="@+id/ATView" /&gt;
                  &lt;Button
                      android:layout_height="wrap_content"
                      android:layout_width="wrap_content"
                      android:text="Checkin"
                      android:textColor="@color/AppBackground"
                      android:id="@+id/btnCheckin"
                      android:background="@color/AppBrightRed" /&gt;
                  &lt;android.support.v7.widget.RecyclerView ----DOES NOT SHOW IF PLACED HERE
              android:id="@+id/recyclerView"
              android:scrollbars="vertical"
              android:layout_width="match_parent"
              android:layout_height="match_parent" /&gt;
                &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
      &lt;/android.support.v4.widget.NestedScrollView&gt;
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>How can I solve this?</p>