Set state of BottomSheetDialogFragment to expanded
“Note that you cannot call the method before view layouts.” The above text is the clue. Dialogs have a listener that is fired once the dialog is shown. The dialog cannot be shown if it isn’t laid out. So, in the onCreateDialog() of your modal bottom sheet (BottomSheetFragment), just before returning the dialog (or anywhere, … Read more