Anko对话框按钮标题
与安科我可以写这样的东西显示对话框:
alert("Dialog title") { yesButton {} noButton {} }.show()
我如何设置按钮的标题?
noButton {title = "title"}
不起作用。
你可以像这样使用positiveButton
和negativeButton
:
alert("Dialog title") { positiveButton("Yes") { dismiss() } negativeButton("No") { dismiss() } }.show()