2016-06-15 2 views
0

두 개의 리사이클 뷰가 내 바닥 시트에 있습니다. 하나는 수평이고 두 번째는 수직리스트입니다. 두 번째 수직 recyclerview 스크롤은 수평 recyclerview 아래에 배치하면 작동하지 않습니다. 위치가 변경되면 작동합니다.두 번째 recyclerview의 스크롤이 bottomSheet에서 작동하지 않습니다.

<?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> 

답변

0

는 사용자 정의 CoordinatorLayout.Behavior를 사용하고 CoordinatorLayout 내부 RecyclerView를 겹칠 수 있습니다. enter link description here 프로젝트를 살펴보십시오

관련 문제