title: bottomSheetDialogFragment full screen
body: <p>What I'm trying to achieve is something like Instagram in-app web browser, used when you click an ad:</p>
  
  <p><a href="https://i.stack.imgur.com/w09Dr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/w09Dr.png" alt="Instagram web browser"></a></p>
  
  <p>what I did, is I used a WebView bottomSheetDialogFragment, and I override <code>onCreateDialog</code> to get the full screen like this :</p>
  
  <pre><code>@Override
  public Dialog onCreateDialog(Bundle savedInstanceState) {
      BottomSheetDialog bottomSheetDialog=(BottomSheetDialog)super.onCreateDialog(savedInstanceState);
      bottomSheetDialog.setOnShowListener(dialog -&gt; {
          BottomSheetDialog dialogc = (BottomSheetDialog) dialog;
          FrameLayout bottomSheet =  dialogc .findViewById(android.support.design.R.id.design_bottom_sheet);
          BottomSheetBehavior.from(bottomSheet).setState(BottomSheetBehavior.STATE_EXPANDED);
          //BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(true);
          //BottomSheetBehavior.from(bottomSheet).setHideable(true);
      });
      return bottomSheetDialog;
  }
  </code></pre>
  
  <p>here is the result I get :</p>
  
  <p><a href="https://i.stack.imgur.com/sXPJ6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sXPJ6.png" alt="web browser"></a></p>
  
  <p>my  question is, how can I get the full screen effect, or how can achieve something like instagram browser?</p>
  
  <p>ps: I tried first  chrome custom tabs, but I couldn't add it inside dialog fragment.</p>
  
  <p>Thank you.</p>