Answers for "android BottomSheetDialogFragment not opening fully on landscape"

0

android BottomSheetDialogFragment not opening fully on landscape

class MyBottomSheetFragment : BottomSheetDialogFragment() {
    //....
    override fun onStart() {
        super.onStart()
        //this forces the sheet to appear at max height even on landscape
        val behavior = BottomSheetBehavior.from(requireView().parent as View)
        behavior.state = BottomSheetBehavior.STATE_EXPANDED
    }
}
Posted by: Guest on June-26-2020

Code answers related to "android BottomSheetDialogFragment not opening fully on landscape"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language