title: How to add RecylerView inside a ScrollView?
body: <p>I want to add a RecylclerView inside a ScrollView. This is my code, </p>
  
  <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:paddingLeft="@dimen/activity_horizontal_margin"
          android:paddingRight="@dimen/activity_horizontal_margin"
          android:paddingTop="@dimen/activity_vertical_margin"
          android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivityFragment"&gt;    
  
                 &lt;android.support.v7.widget.RecyclerView
                  android:id="@+id/my_recycler_view2"
                  android:scrollbars="vertical"        
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"/&gt;
          &lt;/RelativeLayout&gt;
      &lt;/ScrollView&gt;
  </code></pre>
  
  <p>But when I run this code program terminates with the error </p>
  
  <p>Caused by: android.view.InflateException: Binary XML file line #14: Error inflating class android.support.v7.widget.RecyclerView</p>
  
  <p>How to correct this error?</p>