使用BottomSheetBehavior滑动一定距离关闭当前页面或自定义Dialog
val bottomSheetBehavior = BottomSheetBehavior.from(binding.rootBottomSheet) bottomSheetBehavior.state = BottomSheetBehavior.STATE_EXPANDED bottomSheetBehavior.skipCollapsed = true bottomSheetBehavior.peekHeight = 0 bottomSh.
原创
2021-08-11 18:39:01 ·
1374 阅读 ·
0 评论