从我的BottomSheetDialogFragment显示/取消警报对话框时,屏幕上闪烁,如何避免这种情况?预先感谢。
AlertDialog alertDialog = AlertDialog.Builder(activity)
.setMessage(messageStringId)
.setPositiveButton(positiveButtonTextId) { _,_,_ ->
//action
}
.setNegativeButton(negativeButtonTextId) { _,_ ->
//action
}
.create()
alertDialog.show()