AlertDialog 警告对话框
来源:互联网 发布:小升初辅导软件 编辑:程序博客网 时间:2024/04/28 10:46
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(MainActivity.this);dialogBuilder.setTitle("this is dialog");//标题dialogBuilder.setMessage("something important.");//内容dialogBuilder.setCancelable(false);//设置是否可以取消dialogBuilder.setPositiveButton("ok", new DialogInterface.OnClickListener() {@Overridepublic void onClick(DialogInterface arg0, int arg1) {// TODO Auto-generated method stub//确定按钮的点击事件}});dialogBuilder.setNegativeButton("cancel", new DialogInterface.OnClickListener() {@Overridepublic void onClick(DialogInterface arg0, int arg1) {// TODO Auto-generated method stub//取消按钮的点击事件}});dialogBuilder.show();//显示对话框
0 0
- AlertDialog 警告对话框
- AlertDialog 警告对话框
- 警告对话框AlertDialog的使用
- Android AlertDialog警告对话框实现
- Android之警告对话框alertdialog
- AlertDialog:警告对话框的创建方法
- Android用户界面对话框之警告对话框(ALertDialog)
- Android用户界面对话框之警告对话框(ALertDialog)
- Android中的警告对话框(AlertDialog)使用案例
- Android中的AlertDialog使用示例一(警告对话框)
- AlertDialog对话框
- 对话框 AlertDialog
- 对话框AlertDialog
- AlertDialog对话框
- AlertDialog对话框
- AlertDialog对话框
- AlertDialog对话框
- AlertDialog对话框
- 使用Shell编写定时向指定API获取数据的脚本
- HDU 4333 Revolving Digits [扩展KMP]
- 文本首行缩进
- 【58】对称的二叉树
- 旅行社之家(www.lxshome.com)正式上线
- AlertDialog 警告对话框
- 分分钟学会Linux常用指令--Part2
- C语言新人常见问题
- SqlServer2008R2 在win8.1上的安装
- TCP的拥塞控制
- CodeForces 658A Bear and Reverse Radewoosh(模拟)
- qt5 多点触控
- centos下nginx仅允许指定域名访问,不可用ip访问
- HDU 4432 求因子+进制转换