小编vid*_*far的帖子

在 Kotlin 中单击外部时如何关闭底部工作表片段?

我像这样制作底部片断:

val bottomSheet = PictureBottomSheetFragment(fragment)
bottomSheet.isCancelable = true
bottomSheet.setListener(pictureListener)
bottomSheet.show(ac.supportFragmentManager, "PictureBottomSheetFragment")
Run Code Online (Sandbox Code Playgroud)

但是当我触摸外面时它不会被解雇。并解雇或isCancelable不起作用。

android kotlin bottom-sheet android-bottomsheetdialog

5
推荐指数
1
解决办法
580
查看次数