title: Disabling User dragging on BottomSheet
body: <p>I am trying to disable user dragging on <code>BottomSheet</code>. The reason I want to disable is two things. 1. It's preventing the <code>ListView</code> from scrolling downward, 2. I don't want users to dismiss using dragging but with a button on the <code>BottomSheetView</code>. This is what I've done</p>
  
  <pre><code> bottomSheetBehavior = BottomSheetBehavior.from(bottomAnc);
      bottomSheetBehavior.setBottomSheetCallback(new BottomSheetBehavior.BottomSheetCallback() {
          @Override
          public void onStateChanged(@NonNull View bottomSheet, int newState) {
              if (newState == BottomSheetBehavior.STATE_EXPANDED) {
                  //Log.e("BottomSheet", "Expanded");
              } else if (newState == BottomSheetBehavior.STATE_COLLAPSED) {
                  //Log.e("BottomSheet", "Collapsed");
              }
          }
  
          @Override
          public void onSlide(@NonNull View bottomSheet, float slideOffset) {
              // React to dragging events
              bottomSheet.setOnTouchListener(new View.OnTouchListener() {
                  @Override
                  public boolean onTouch(View v, MotionEvent event) {
                      int action = MotionEventCompat.getActionMasked(event);
                      switch (action) {
                          case MotionEvent.ACTION_DOWN:
                              return false;
                          default:
                              return true;
                      }
                  }
              });
          }
      });
  </code></pre>
  
  <p>The bottomSheetLayout</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;FrameLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:orientation="vertical"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@color/white"
  app:behavior_hideable="true"
  app:behavior_peekHeight="0dp"
  app:layout_behavior="@string/bottom_sheet_behavior"
  android:id="@+id/bottomSheet"&gt;
  
  &lt;android.support.v7.widget.CardView
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:elevation="10dp"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal"
              android:gravity="center_vertical"&gt;
  
              &lt;TextView
                  android:id="@+id/text1"
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:layout_weight="1"
                  android:text="Order Items"
                  android:layout_margin="16dp"
                  android:textAppearance="@android:style/TextAppearance.Large"/&gt;
  
  
              &lt;Button
                  android:layout_width="50dp"
                  android:layout_height="wrap_content"
                  android:layout_marginRight="5dp"
                  android:background="@drawable/bg_accept"/&gt;
  
              &lt;Button
                  android:layout_width="50dp"
                  android:layout_height="wrap_content"
                  android:layout_marginRight="8dp"
                  android:background="@drawable/bg_cancel"/&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;ListView
              android:id="@+id/item_edit"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:background="@color/white"
              android:divider="@color/md_divider_black"
              android:dividerHeight="1dp"/&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  
  <p></p>