我的类从BottomSheetDialogFragment扩展而来,在此布局中使用2个recyclerViews。但总是1 recyclerView可滚动和其他recyclerView不起作用。如何在BottomSheetDialogFragment中使用2 recyclerView
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mainCoordinatorLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/mainBottomSheet"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerViewOne"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerViewTwo"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>
解决了这个问题,你想在同一时间滚动两者兼而有之? – Kathi
@Kathi no,sperate scroll –
但总是1 recyclerView可滚动和其他recyclerView不起作用。你可以编辑你的问题来更好地理解 – Kathi