android bottomsheetdialogfragment not opening fully on landscape

Solutions on MaxInterview for android bottomsheetdialogfragment not opening fully on landscape by the best coders in the world

showing results for - "android bottomsheetdialogfragment not opening fully on landscape"
Liliana
16 Jan 2018
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}
queries leading to this page
how to close bottomsheetdialogfragment in android without tokenandroid bottomsheetdialogfragment landscape minimize layoutandroid bottomsheetdialogfragment with saved instance stateandroid bottom sheet dialog not show fullandroid bottomsheetdialogfragment closebottomsheetdialogfragment show androidandroid bottomsheetdialogfragment landscape android bottomsheetdialogfragment landscape minimize widthbottomsheetdialogfragment only open 1 at a timeandroid bottomsheetdialogfragment showbottomsheetdialogfragment reopen after come from background in androidhow to make full screen bottomsheetdialogfragment androidbottomsheetdialogfragment full screenshow bottomsheetdialogfragment not working after dissmissbottomsheetdialogfragment androidfull course context is not visible on landscape modebottomsheetdialogfragment android close in codeandroid bottomsheetdialogfragmentandroid bottomsheetdialogfragment mediumbottomsheetdialogfragment full heightandroid bottomsheetdialogfragment show fullbottomsheet dialog fragment not open fullbottomsheetdialogfragment in androidmake a full screen bottomsheetdialogfragment androidandroid bottomsheetdialogfragment oncloseandroid set bottomsheetdialogfragment position on screenbottomsheetdialogfragment not show second timebottomsheetdialogfragment not showbottomsheet dialog android not show fullbottomsheetdialogfragment show not workingbottomsheetdialogfragment not full screenshow bottomsheetdialogfragmentbottomsheetdialogfragment don 27t always show updismiss bottomsheetdialogfragment programmaticallyandroid bottomsheetdialogfragment not opening fully on landscape