title: Android RecyclerView inside BottomSheetBehavior layout
body: <p>The problem is that scroll is taken by <code>BottomSheetBehavior</code> and I cannot scroll vertically my items in <code>RecyclerView</code>. I'd like to scroll items from <code>RecyclerView</code> firstly</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="view.activity.MyActivity"&gt;
  
  
      &lt;!--my activity views--&gt;
  
      &lt;include layout="@layout/custom_bottom_sheet_view" /&gt;
  
  
  &lt;/androidx.coordinatorlayout.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>and code for <code>custom_bottom_sheet_view</code> is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:id="@+id/bottom_sheet_searches"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
      android:orientation="vertical"
      app:behavior_hideable="false"
      app:behavior_peekHeight="56dp"
      app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"&gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="56dp"&gt;
  
          &lt;!--view peek--&gt;
  
      &lt;/RelativeLayout&gt;
  
      &lt;androidx.recyclerview.widget.RecyclerView
          android:id="@+id/my_list"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>