title: how to set height of BottomSheet full parent?
body: <p>I am trying to call BottomSheet using a<a href="http://android-developers.blogspot.in/2016/02/android-support-library-232.html" rel="noreferrer">ndroid-support-library 23.2</a> on Click of button. Its working fine but not taking full height. It reside below <code>AppBarLayout</code>. I didn't find any solution on <a href="http://android-developers.blogspot.in/2016/02/android-support-library-232.html" rel="noreferrer">Android Documentation</a></p>
  
  <p>This is my Screen layout</p>
  
  <p><a href="https://i.stack.imgur.com/nt6vY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nt6vY.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/7sfam.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7sfam.png" alt="enter image description here"></a></p>
  
  <p>Here is my code.</p>
  
  <p>activity_main.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.design.widget.CoordinatorLayout 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"
      android:id="@+id/main_content"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
      tools:context=".MainActivity"&gt;
      &lt;android.support.design.widget.AppBarLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt;
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="?attr/colorPrimary"
              app:layout_scrollFlags="snap|enterAlwaysCollapsed"
              app:popupTheme="@style/AppTheme.PopupOverlay" /&gt;
          &lt;android.support.design.widget.TabLayout
              android:id="@+id/tabs"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="?attr/colorPrimary"
              app:tabGravity="fill"
              app:tabIndicatorColor="#5be5ad"
              app:tabIndicatorHeight="4dp"
              app:tabMode="fixed" /&gt;
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/viewpager"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
  
      &lt;android.support.design.widget.FloatingActionButton
          android:id="@+id/fab"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom|end"
          android:layout_margin="@dimen/fab_margin"
          android:src="@android:drawable/ic_dialog_email" /&gt;
  
      &lt;!-- BottomSheet Layout --&gt;
      &lt;FrameLayout
          android:id="@+id/bottom_sheet"
          android:layout_width="match_parent"
          android:layout_height="fill_parent"
          app:behavior_hideable="true"
          app:layout_behavior="android.support.design.widget.BottomSheetBehavior"&gt;
  
      &lt;/FrameLayout&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>MainActivity.java</p>
  
  <pre><code>View bottomSheet;
  private BottomSheetDialog mBottomSheetDialog;
  
  private void initView(){
           /*
          Bottom Sheet Initialization
           */
          CoordinatorLayout coordinatorLayout = (CoordinatorLayout)findViewById(R.id.main_content);
          // The View with the BottomSheetBehavior
          bottomSheet = coordinatorLayout.findViewById(R.id.bottom_sheet);
          behavior = BottomSheetBehavior.from(bottomSheet);
  //        behavior.setState(BottomSheetBehavior.STATE_HIDDEN);
          behavior.setBottomSheetCallback(new BottomSheetBehavior.BottomSheetCallback() {
              @Override
              public void onStateChanged(@NonNull View bottomSheet, int newState) {
                  // React to state change
                  CommonMethods.getInstance().e("onStateChanged", "onStateChanged:" + newState);
                  if (newState == BottomSheetBehavior.STATE_EXPANDED) {
                      fab.setVisibility(View.GONE);
                  } else {
                      fab.setVisibility(View.VISIBLE);
                  }
              }
  
              @Override
              public void onSlide(@NonNull View bottomSheet, float slideOffset) {
                  // React to dragging events
                  CommonMethods.getInstance().e("onSlide", "onSlide");
              }
          });
  
          behavior.setPeekHeight(100);
  
      }
  </code></pre>
  
  <p>Click Event Code:</p>
  
  <pre><code>@Override
      public void onShareClick() {
          if (behavior.getState() == BottomSheetBehavior.STATE_EXPANDED) {
              behavior.setState(BottomSheetBehavior.STATE_COLLAPSED);
          }
          if(mBottomSheetDialog==null){
              mBottomSheetDialog = new BottomSheetDialog(this);
              View view = getLayoutInflater().inflate(R.layout.layout_bottomsheet, null);
              mBottomSheetDialog.setContentView(view);
          }
  
          mBottomSheetDialog.show();
          mBottomSheetDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
              @Override
              public void onDismiss(DialogInterface dialog) {
                  mBottomSheetDialog = null;
              }
          });
      }
  </code></pre>