下面是带确认和取消按钮的对话框:
new AlertDialog.Builder(self) |
.setTitle( "确认" ) |
.setMessage( "确定吗?" ) |
.setPositiveButton( "是" , null ) |
.setNegativeButton( "否" , null ) |
.show(); |
http://www.runoob.com/w3cnote/android-tutorial-alertdialog.html
学习网址
可直接show()
create() 后 show()