从我的 BottomSheetDialogFragment 显示/关闭警报对话框时,屏幕上会闪烁,如何避免这种情况?提前致谢。
AlertDialog alertDialog = AlertDialog.Builder(activity)
.setMessage(messageStringId)
.setPositiveButton(positiveButtonTextId) { _, _, _ ->
//Action
}
.setNegativeButton(negativeButtonTextId) { _, _, _ ->
//Action
}
.create()
alertDialog.show()