Avoid the initial vertical position of BottomSheetDialogs being capped.

This commit is contained in:
azuo
2021-09-13 11:55:29 +08:00
parent 0dbbe0e5d2
commit 1389ddbfc0
9 changed files with 41 additions and 12 deletions

View File

@ -57,6 +57,10 @@ class MaterialBottomSheetDialog(
}
setContentView(binding.root)
behavior.run {
skipCollapsed = true
state = com.google.android.material.bottomsheet.BottomSheetBehavior.STATE_EXPANDED
}
super.show()
}