BottomSheetDialogFragment - How to set expanded height (or min top offset)
<p>I create a <code>BottomSheetDialogFragment</code> and I want to adjust it's maximum expanded height. How can I do that? I can retrieve the <code>BottomSheetBehaviour</code> but all I can find is a setter for the peek height but nothing for the expanded height.</p>

<pre><code>public class DialogMediaDetails extends BottomSheetDialogFragment
{
    @Override
    public void setupDialog(Dialog dialog, int style)
    {
        super.setupDialog(dialog, style);
        View view = View.inflate(getContext(), R.layout.dialog_media_details, null);
        dialog.setContentView(view);

        ...

        View bottomSheet = dialog.findViewById(R.id.design_bottom_sheet);
        BottomSheetBehavior behavior = BottomSheetBehavior.from(bottomSheet);
        behavior.setPeekHeight(...);
        // how to set maximum expanded height???? Or a minimum top offset?

    }
}
</code></pre>

<p><strong>EDIT</strong></p>

<p>Why do I need that? Because I show a <code>BottomSheet</code> Dialog in a full screen activity and it looks bad if the <code>BottomSheet</code> leaves a space on top...</p>