欢迎访问悦橙教程(wld5.com),关注java教程。悦橙教程  java问答|  每日更新
页面导航 : > > 文章正文

[AlertDialog]用法示例,alertdialog示例,AlertDialog

来源: javaer 分享于  点击 43906 次 点评:49

[AlertDialog]用法示例,alertdialog示例,AlertDialog


AlertDialog dialog = new AlertDialog.Builder(this)    .setTitle("AlertDialog示例")    .setMessage("消息")    .setNegativeButton("退出", new DialogInterface.OnClickListener() {        @Override        public void onClick(DialogInterface dialog, int which) {            }    })    .setPositiveButton("保存", new DialogInterface.OnClickListener() {        @Override        public void onClick(DialogInterface dialog, int which) {                        }    })    .create();dialog.show();//该片段来自于http://byrx.net
相关栏目:

用户点评