android 创建对话框
来源:互联网 发布:海南大学网络自助服务 编辑:程序博客网 时间:2024/05/29 15:57
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage("是否创建快捷方式")
.setCancelable(false)
.setPositiveButton("yes", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
// addShortcut();
}
})
.setNegativeButton("No", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert = builder.create();
alert.show();
builder.setMessage("是否创建快捷方式")
.setCancelable(false)
.setPositiveButton("yes", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
// addShortcut();
}
})
.setNegativeButton("No", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
AlertDialog alert = builder.create();
alert.show();
- android 创建对话框
- Android 创建对话框示例
- android 对话框的创建
- android创建自定义对话框
- android 创建对话框
- Android创建AlertDialog对话框
- Android 创建对话框
- Android之创建对话框
- Android中创建对话框
- Android使用DialogFragment创建对话框
- Android使用DialogFragment创建对话框
- android:使用DialogFragment 创建对话框
- Android 使用DialogFragment创建对话框
- Android:创建常见对话框以及使用对话框实现登陆
- Android学习:不再提示对话框(创建自定义对话框)
- Android SDK 开发之创建对话框
- Android 创建没有标题栏的对话框
- Android中对话框(Dialog)的创建方法
- android HttpClient 的使用
- 华为历史的几次重大管理变革
- 云计算仿真工具中文注释SimEntity.java
- 2012年就业公司
- java 常用日期时间操作函数
- android 创建对话框
- Spring整合Struts2简单示例
- 用GDB调试程序(zz)
- 屏蔽优酷、土豆等视频网站15秒广告的最全最简单方法
- android HttpURLConnection编程详解,获取网络图片,html代码查
- facebook cancvs scrollbar problem ,facebook 滚动条问题
- C++ inline function
- linux内核中Kconfig文档的作用
- QT图形视图框架(The Graphics View Framework