AlertDialog(操作选择)与ProgressDialog(等待)弹窗
来源:互联网 发布:aspen软件安装包 编辑:程序博客网 时间:2024/06/05 20:52
一:操作选择弹窗
AlertDialog.Builder dialog=new AlertDialog.Builder(主活动.this);
dialog.setTitle("标题内容");
dialog.setMessage("主体内容");
dialog.setCancelable(false); //禁止Back返回
//确定
dialog.setPositiveButton("OK",new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog,int which){
}
});
//取消
dialog.setNegativeButton("Cancel",new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog,int which){
}
});
dialog.show(); //显示弹窗二:等待弹窗
ProgressDialog progressdialog=new ProgressDialog(FirstActivity.this);progressdialog.setTitle("this is progressdialog");progressdialog.setMessage("Loading");progressdialog.setCancelabl
阅读全文
0 0
- AlertDialog(操作选择)与ProgressDialog(等待)弹窗
- 对话框 (AlertDialog & ProgressDialog)
- 对话框 (AlertDialog & ProgressDialog)
- ProgressDialog(等待框)
- Android UI学习 - 对话框 (AlertDialog & ProgressDialog)
- android 登录,发送等待ProgressDialog(多线程)
- 信息提醒之对话框(AlertDialog + ProgressDialog)-更新中
- AlertDialog,ProgressDialog
- AlertDialog ProgressDialog
- ProgressDialog用作的等待操作的对话框
- android中的ProgressDialog(进度),DatePickerDialog(日期选择)与TimePickerDialog(时间选择)
- ProgressDialog和AlertDialog(具有选择功能)的例子
- 选择与等待
- [Android] ProgressDialog与耗时操作
- 在Android程序里显示等待滚动圈(使用ProgressDialog)| Show waiting rolling circle in android application (using ProgressDialog)
- 关于对话框(AlertDialog和ProgressDialog)的那些事(笔记)
- 第四部分:UI开发常用控件(TextView、Button、EditText、ImageView、ProgressBar、AlertDialog、ProgressDialog)
- Android 对话框 (AlertDialog & ProgressDialog)
- Ubuntu 安装vim失败解决
- 反射机制
- c++函数重载机制实现原理
- [leetcode]: 198. House Robber
- 了解jQuery插件编写
- AlertDialog(操作选择)与ProgressDialog(等待)弹窗
- 网络协议 2(自上而下)
- WPF简单教程:数据绑定
- Python的坑(2) -- TypeError: 'builtin_function_or_method' object is not subscriptable
- ZJCOJ L先生与质数V3/V4 (Meisell-Lehmer算法)
- 树的子结构
- 互联网巨头
- eclipse build path功能总结
- 工厂模式