【发布时间】:2020-03-30 09:08:26
【问题描述】:
从我的 BottomSheetDialogFragment 显示/关闭警报对话框时,屏幕上会闪烁,如何避免这种情况?提前致谢。
AlertDialog alertDialog = AlertDialog.Builder(activity)
.setMessage(messageStringId)
.setPositiveButton(positiveButtonTextId) { _, _, _ ->
//Action
}
.setNegativeButton(negativeButtonTextId) { _, _, _ ->
//Action
}
.create()
alertDialog.show()
【问题讨论】:
-
如果您在问题中显示一些 gif 或视频,这将有助于理解。
-
@brijeshkumar 感谢您的建议,已更新视频链接
标签: android android-alertdialog android-bottomsheetdialog