1class MyBottomSheetFragment : BottomSheetDialogFragment() {
2 //....
3 override fun onStart() {
4 super.onStart()
5 //this forces the sheet to appear at max height even on landscape
6 val behavior = BottomSheetBehavior.from(requireView().parent as View)
7 behavior.state = BottomSheetBehavior.STATE_EXPANDED
8 }
9}