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

@ -108,6 +108,10 @@ open class BottomSheetMenu<T>(context: Context, private val header: String? = nu
}
}
setContentView(binding.root)
behavior.run {
skipCollapsed = true
state = com.google.android.material.bottomsheet.BottomSheetBehavior.STATE_EXPANDED
}
super.show()
}