2016-06-15 3 views
0

私のボトムシートには2つのリサイクルビューがあります。 1つは水平、もう1つは垂直のリストです。 2番目のvertical recyclerview scrollは、horizo​​ntal recyclerviewの下に置かれても機能しません。ポジションが変更されたときに機能します。カスタムCoordinatorLayout.Behaviorを使用してCoordinatorLayout内RecyclerViewを重ねることができ二番目のrecyclerviewのスクロールはボトムシートでは機能しません

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
       xmlns:app="http://schemas.android.com/apk/res-auto" 
       android:layout_width="match_parent" 
       android:layout_height="match_parent" 
       android:dividerPadding="10dp" 
       android:orientation="vertical" 
       android:paddingBottom="16dp" 
       android:paddingTop="16dp" 
       android:showDividers="middle" 
       app:layout_behavior="@string/bottom_sheet_behavior"> 


    <Horizontal RecyclerView 
     android:id="@+id/ticket_selector" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:layout_gravity="center_vertical" 
     app:layout_behavior="android.support.design.widget.BottomSheetBehavior" 
     android:layout_marginLeft="16dp" 
     android:layout_marginStart="16dp"/> 


    <Vertical Recyclerview 
     android:id="@+id/event_schedule" 
     android:layout_width="match_parent" 
     android:layout_height="200dp" 
     android:layout_marginLeft="16dp" 
     android:layout_marginStart="16dp" 
     app:layout_behavior="android.support.design.widget.BottomSheetBehavior"/> 

</LinearLayout> 

答えて

関連する問題