title: Horizontal RecyclerView inside ScrollView not inflating - Android
body: <p>I have a horizontal <code>RecyclerView</code> inside a <code>ScrollView</code> but none of the adapter methods are being triggered.</p>
  
  <p>This is my fragment with the <code>ScrollView</code>:</p>
  
  <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
     android:orientation="vertical" android:layout_width="match_parent"
     android:background="@color/white"
     android:layout_height="match_parent"&gt;
  
      &lt;RelativeLayout
         android:layout_width="match_parent"
         android:layout_height="match_parent"&gt;
  
      &lt;include layout="@layout/selector"
          android:layout_width="match_parent"
          android:layout_height="100dp"
          android:id="@+id/selector"/&gt;
  
    .....
    .....
  
     &lt;/RelativeLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>This is my selector.xml layout: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:orientation="vertical" android:layout_width="match_parent"
     android:layout_height="100dp"
     android:background="@color/green"&gt;
  
      &lt;android.support.v7.widget.RecyclerView
         android:id="@+id/rv_kids"
         android:layout_width="match_parent"
         android:layout_height="100dp" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And here I'm setting the adapter to the <code>RecyclerView</code>:</p>
  
  <pre><code>selectorAdapter = new selectorAdapter(activity, kids);
  rv_items.setLayoutManager(new LinearLayoutManager(activity, LinearLayoutManager.HORIZONTAL, false));
  rv_items.setAdapter(selectorAdapter);
  selectorAdapter.notifyDataSetChanged();
  </code></pre>
  
  <p>The thing is, the green background I've set to the selector shows up but none of the adapter methods are triggered and the <code>RecyclerView</code> doesn't inflate. 
  What can I do differently?</p>