Java 组合滚动垂直回收适配器内的水平回收视图

Java 组合滚动垂直回收适配器内的水平回收视图,java,android,android-recyclerview,horizontal-scrolling,Java,Android,Android Recyclerview,Horizontal Scrolling,此处,父对象具有垂直recyclerview滚动,子对象具有水平recyclerview,我只是想滚动所有的孩子在一起,而不是单独目前的孩子滚动,这是我面临的一个问题。我希望我解释得很好。如果有人有一些建议或解决方案,请提供我将非常感谢你。检查所附的图片 ` 父视图 <RelativeLayout android:layout_width="match_parent" android:layout_height="m

此处,父对象具有垂直
recyclerview
滚动,子对象具有水平
recyclerview
,我只是想滚动所有的孩子在一起,而不是单独目前的孩子滚动,这是我面临的一个问题。我希望我解释得很好。如果有人有一些建议或解决方案,请提供我将非常感谢你。检查所附的图片

` 父视图

     <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <android.support.v7.widget.RecyclerView
                    android:id="@+id/appointments_recycler"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:paddingLeft="@dimen/_10ssp"
                    android:paddingRight="@dimen/_10ssp">

                </android.support.v7.widget.RecyclerView>
 </RelativeLayout>

包含水平回收视图的适配器视图。

<LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

            <com.app.barber.views.CustomTextView
                android:id="@+id/time_slot"
                android:layout_width="@dimen/_40ssp"
                android:layout_height="wrap_content"
                android:layout_gravity="top"
                android:paddingTop="@dimen/_2sdp"
                android:paddingRight="@dimen/_2sdp"
                android:paddingBottom="@dimen/_2sdp"
                android:text="9:00 AM"
                android:textSize="@dimen/_10ssp"
                android:textStyle="bold" />


        <View
            android:layout_width="0.001sp"
            android:layout_height="match_parent"
            android:background="@color/color_light_grey_blue" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <android.support.v7.widget.RecyclerView
                android:id="@+id/days_recyclar"
                android:layout_width="@dimen/_500sdp"
                android:layout_height="wrap_content"
                android:visibility="visible" />

        </LinearLayout>
    </LinearLayout>


您可以使用Thank@NileshRathod,但我有一些自定义视图,这就是为什么我没有按照您的建议使用此方法。我从中得到了解决方案。您找到答案了吗?这也是我的问题。你检查过上面的答案链接了吗?你可以使用它,也可以使用它。你可以使用它。谢谢@NileshRathod,但我有一些自定义视图,这就是为什么我没有按照你的建议使用它。我从中得到了解决方案。你找到答案了吗?这也是我的问题。你检查过上面的答案链接了吗?你可以用它,也可以用这个