recyclerview inside horizontalscrollview
<p>how can i put vertical recyclerview inside horizontalScrollview ?</p>

<p>when adapter binds data at viewholder, item's left margin is increase.</p>

<p>(ex : leftMargin = position * 100)</p>

<p>but doesn't work horizontalScrollview.
help me ~~<br>
sorry for my bad english.
<a href="https://i.stack.imgur.com/wzEhB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wzEhB.png" alt="enter image description here"></a></p>

<p>my activity layout  .xml </p>

<pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent"&gt;

&lt;HorizontalScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fillViewport="true"
    android:scrollbarAlwaysDrawHorizontalTrack="true"&gt;

    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"&gt;

        &lt;android.support.v7.widget.RecyclerView
            android:id="@+id/list"
            android:layout_width="match_parent"
            android:layout_height="match_parent" /&gt;
    &lt;/LinearLayout&gt;
&lt;/HorizontalScrollView&gt;
&lt;/FrameLayout&gt;
</code></pre>

<p>and list_item .xml </p>

<pre><code>&lt;android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_margin="8dp"
card_view:cardCornerRadius="2dp"&gt;

&lt;LinearLayout
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;

    &lt;ImageView
        android:id="@+id/icon"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:src="@drawable/bullet" /&gt;
    &lt;CheckBox
        android:id="@+id/check"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" /&gt;
    &lt;TextView
        android:id="@+id/text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" /&gt;

&lt;/LinearLayout&gt;
&lt;/android.support.v7.widget.CardView&gt;
</code></pre>