我像这样制作底部片断:
val bottomSheet = PictureBottomSheetFragment(fragment)
bottomSheet.isCancelable = true
bottomSheet.setListener(pictureListener)
bottomSheet.show(ac.supportFragmentManager, "PictureBottomSheetFragment")
Run Code Online (Sandbox Code Playgroud)
但是当我触摸外面时它不会被解雇。并解雇或isCancelable不起作用。