title: Horizontal RecyclerView inside vertical ScrollView
body: <p>So I have a horizontal RecyclerView inside a vertical ScrollView. Everything inside my layout is displayed fine and it all scrolls in the directions I want and it does it smoothly. </p>
  
  <p>The only problem I have, is that the RecyclerView is below some other content in the ScrollView and when the RecyclerView is partially visible, it will line the bottom of the RecyclerView with the bottom of the screen on start-up. This means that the content above the RecyclerView is pushed off the screen.</p>
  
  <p>Does anyone know why this happens, and how I can fix it?</p>
  
  <p>Here is a simple layout that does what I just described. You don't even need to populate the RecyclerView, it will still do it.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ScrollView
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;LinearLayout
          android:orientation="vertical"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="500dp"
              android:background="#fff"/&gt;
  
          &lt;android.support.v7.widget.RecyclerView
              android:layout_width="match_parent"
              android:layout_height="200dp"
              android:background="#000"/&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>