Я попытался установить peekHeight следующим образом:
Код: Выделить всё
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
dialog?.setOnShowListener { dialog ->
val bottomSheetBehavior: BottomSheetBehavior = (dialog as BottomSheetDialog).behavior
bottomSheetBehavior.peekHeight = Resources.getSystem().displayMetrics.heightPixels
bottomSheetBehavior.state = BottomSheetBehavior.STATE_EXPANDED
}
}
Затем я попытался добавить android:theme=" @android:style/Theme.Material.Light.NoActionBar.Fullscreen"
В моем макете BottomSheet, но результат все равно тот же.
Подробнее здесь: https://stackoverflow.com/questions/715 ... fullscreen