Android recyclerview无法拖动底部工作表

Android recyclerview无法拖动底部工作表,android,android-recyclerview,bottom-sheet,Android,Android Recyclerview,Bottom Sheet,我正在构建一个Android应用程序,而不是使用BottomSheet。我正在将底部工作表行为应用于布局。父xml文件有一个协调器布局,我将此布局包括在其中。我无法从“回收器”视图中拖动底部纸张,但可以从可折叠工具栏中进行拖动。你知道我该怎么做吗。下面是我的xml文件中的代码。提前谢谢。材料设计api版本和recyclerview api版本为1.0.0 <layout xmlns:android="http://schemas.android.com/apk/res/androi

我正在构建一个Android应用程序,而不是使用BottomSheet。我正在将底部工作表行为应用于布局。父xml文件有一个协调器布局,我将此布局包括在其中。我无法从“回收器”视图中拖动底部纸张,但可以从可折叠工具栏中进行拖动。你知道我该怎么做吗。下面是我的xml文件中的代码。提前谢谢。材料设计api版本和recyclerview api版本为1.0.0

<layout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools">

    <FrameLayout
        android:id="@+id/frame_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">

        <LinearLayout
            android:id="@+id/main_content_container"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">

            <androidx.coordinatorlayout.widget.CoordinatorLayout
                android:id="@+id/main_content"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <com.google.android.material.appbar.AppBarLayout
                    android:id="@+id/app_bar_layout"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:fitsSystemWindows="true">

                    <com.google.android.material.appbar.CollapsingToolbarLayout
                        android:id="@+id/collapsing_toolbar_layout"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:fitsSystemWindows="true"
                        app:collapsedTitleTextAppearance="@style/ToolbarStyle"
                        app:layout_scrollFlags="scroll|exitUntilCollapsed">

                        <androidx.appcompat.widget.Toolbar
                            android:id="@+id/toolbar"
                            style="@style/ToolbarStyle"
                            android:layout_width="match_parent"
                            android:layout_height="?android:attr/actionBarSize">

                            <ImageButton
                                android:id="@+id/image_button"
                                android:layout_width="40dp"
                                android:layout_height="match_parent"
                                android:layout_gravity="end"
                                android:background="?android:attr/selectableItemBackground"
                                android:paddingLeft="@dimen/ad_item_spacing_3"
                                android:paddingRight="@dimen/ad_item_spacing_3"
                                android:src="@drawable/ellipsis"/>
                        </androidx.appcompat.widget.Toolbar>
                    </com.google.android.material.appbar.CollapsingToolbarLayout>
                </com.google.android.material.appbar.AppBarLayout>

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:orientation="vertical"
                    app:layout_behavior="@string/appbar_scrolling_view_behavior">

                    <FlexibleTabLayout
                        android:id="@+id/flexible_tab_layout"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:background="?attr/primaryBackground"
                        android:elevation="@dimen/toolbar_elevation"
                        android:theme="@style/tabLayoutTheme"
                        app:layout_scrollFlags="scroll"/>

                    <androidx.recyclerview.widget.RecyclerView
                        android:id="@+id/recycler_view"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:clipToPadding="false"/>
                </LinearLayout>
            </androidx.coordinatorlayout.widget.CoordinatorLayout>
        </LinearLayout>
    </FrameLayout>
</layout>