title: Get BottomSheetBehaviour from BottomSheetDialog
body: <p>This is my layout for BottomSheetDialog. I've a grid layout inside as well. That grid layout's scrolling is not proper. I mean it scrolls only in expanded state of BottomSheetDialog.</p>
  
  <pre><code>&lt;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="wrap_content"
      android:orientation="vertical"
      app:layout_behavior="@string/bottom_sheet_behavior"
      &gt;
  
      &lt;LinearLayout
          android:id="@+id/ll"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:padding="@dimen/view_padding_medium"
          android:gravity="center_vertical"&gt;
  
          &lt;ImageView
              android:layout_width="@dimen/profile_image"
              android:layout_height="@dimen/profile_image"
              android:src="@drawable/icon" /&gt;
  
          &lt;TextView
              android:id="@+id/title1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="@dimen/view_padding_medium"
              android:text="@string/smart_action_share"
              android:textColor="@color/white"
               /&gt;
      &lt;/LinearLayout&gt;
  
  
  
      &lt;GridView
          android:id="@+id/gridView11"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:numColumns="3"
          &gt;
  
      &lt;/GridView&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>This is the way i'm creating a bottom sheet dialog:</p>
  
  <pre><code>BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(context);
          LayoutInflater inflater = ((Activity) Constants.getContext()).getLayoutInflater();
  
          View view = inflater.inflate(R.layout.dialog_share1, null);
  
          bottomSheetDialog.setContentView(view);
  
      final GridView grid = (GridView) view.findViewById(R.id.gridView11);
  
      CustomAdapter adapter = new CustomAdapter (context);
      grid.setAdapter(adapter);
  
      bottomSheetDialog.show();
  </code></pre>
  
  <p>How can the behaviour of dialog be accessed so that i can fix the grid layout scrolls or is there any other way of fixing that?</p>
  
  <p>Just to make everything clear:
  Grid view scroll should be enabled everytime irrespective of the state of bottom sheet. </p>