【发布时间】:2020-06-01 14:17:29
【问题描述】:
当我点击确定按钮时我想要的是它做某事的对话框,和取消按钮一样
覆盖 fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
val builder = AlertDialog.Builder(this.requireActivity())
// Dialog will have "Make a selection" as the title
builder.setMessage("Details successfully captured.Do you wish to proceed and book your seat?")
// An OK button that does nothing
.setPositiveButton("OK") { dialog, id ->
// Nothing happening here
}
// A "Cancel" button that does nothing
.setNegativeButton("Cancel") { dialog, id ->
// Nothing happening here either
}
【问题讨论】:
标签: kotlin android-dialog