RecyclerView inside HorizontalScrollView Android
<p>I am using a Recycler view inside a Horizontal Scroll View to display threaded comments like below:</p>

<blockquote>
  <p>Comment1
      Comment1Child1
      Comment1Child2
            Comment1Child2Child1
      Comment1Child3 Comment2</p>
</blockquote>

<p>etc.</p>

<p>I have done this with the following XML:</p>

<pre><code>&lt;HorizontalScrollView
                android:id="@+id/horizontalScrollView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:fillViewport="true"
                android:scrollbarSize="2dp"&gt;

                &lt;android.support.v7.widget.RecyclerView
                    android:id="@+id/commentRV"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_alignParentStart="true"
                    android:layout_marginLeft="47dp"
                    android:minWidth="200dp" /&gt;
            &lt;/HorizontalScrollView&gt;
</code></pre>

<p>You'll see I set a min width of 200dp so that the comments never get too small and the deeper down the thread they go the further off screen it will be pushed.</p>

<p>It is displaying perfectly but I am unable to scroll horizontally. I can see the scroll bars but I cannot scroll horizontally.</p>

<p>I have fiddled with disabling Touch and nestedScrollingEnabled in the RV but not sure what the real solution is. Nothing seems to work?</p>

<p>Any help would be much appreciated! Thank you</p>