显示BottomSheetDialogFragment()不起作用

时间:2019-01-21 18:14:02

标签: android-studio android-activity kotlin adapter bottom-sheet

我创建了一个扩展名为BottomSheetDialogFragment()的BottomSheetEx类。 我在扩展名为Fragment()的类FirstFragment中证明了这一点,并且可以正常工作。

      val bottomSheet = BottomSheetEx()
      fragmentManager?.let { it1 -> bottomSheet.show(it1, "BottomSheetEx") }

它没有显示在另一个活动和带有回收者视图的另一个适配器上。

我该如何解决?

0 个答案:

没有答案