title: android: RecyclerView inside a ScrollView (or parallax)
body: <p>I have a fragment with <strong>2 cardviews</strong> with multiple controls within.</p>
  
  <p><strong>below</strong> the second cardview I have a <strong>recyclerview</strong>, this works <strong>perfect</strong>.</p>
  
  <p>the problem is that the recyclerview starts <strong>very bottom of the screen</strong>, and scroll the recylcerview is very <strong>small</strong>.</p>
  
  <p><strong>previously used a listview, and this kept me fit your content and thus make scroll across the screen at once, but with recylclerview can not.</strong></p>
  
  <p>How to make when I scroll in the recyclerview, <strong>controls go up</strong> like parallax effect?</p>
  
  <p>EDIT: more clear, imagine 2 cardviews in a fragment, these occupy 80% of the screen, above of these, a recyclerview with a list of 100 items, but the scroll is so tiny...the listview let me adapt to the "content" and scroll the entire screen at once.</p>
  
  <p>this is my XML layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/svScroll"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:fillViewport="true" &gt;
  
      &lt;RelativeLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content" &gt;
  
          &lt;include
              android:id="@+id/cvCampos1"
              layout="@layout/ctlcabeceralibreta" /&gt;
  
          &lt;include
              android:id="@+id/cvCampos2"
              layout="@layout/ctlcabeceralibreta2" /&gt;
  
          &lt;android.support.v7.widget.RecyclerView
              android:id="@+id/rvRegistros"
              android:layout_width="fill_parent"
              android:layout_height="1000dp"
              android:layout_below="@id/cvCampos2"
              android:scrollbars="vertical" /&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>this is the screenshoot:</p>
  
  <p><img src="https://i.stack.imgur.com/04fFO.png" alt="enter image description here"></p>