-
-
Save BonusTrack02/9727aa9a7d7a0b993fc290c9336f6627 to your computer and use it in GitHub Desktop.
onStart BottomSheet height
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onStart() { | |
super.onStart() | |
if (dialog != null) { | |
val bottomSheet = | |
dialog!!.findViewById<View>(com.google.android.material.R.id.design_bottom_sheet) | |
bottomSheet.layoutParams.height = 600 | |
val behavior = BottomSheetBehavior.from(bottomSheet) | |
behavior.state = BottomSheetBehavior.STATE_EXPANDED | |
behavior.skipCollapsed = true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment