这里父级具有垂直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>