0
我在谷歌支持庫底部工作表內使用RecyclerView。我注意到有時底部表單會攔截觸摸事件。我還沒有找到這個問題的任何答案。BottomSheet正在攔截來自RecyclerView的觸摸事件
我的屏幕看起來像這樣
代碼佈局:
<android.support.design.widget.CoordinatorLayout
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:background="@color/appColor">
<ui.view.GMapView
android:id="@+id/gMapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
<FrameLayout
android:id="@+id/mBottomSheet"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="android.support.design.widget.BottomSheetBehavior"
app:behavior_peekHeight="160dp"
app:behavior_hideable="false"
android:fillViewport="true"
android:orientation="vertical"
android:background="@color/uiColor"
>
<android.support.v7.widget.RecyclerView
android:id="@+id/rvAddresses"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
</FrameLayout>
</android.support.design.widget.CoordinatorLayout>
感謝您的幫助!