对dialog(对话框)的一些理解
来源:互联网 发布:淘宝商品品牌词库 编辑:程序博客网 时间:2024/05/18 13:47
//创建一个dialog(对话框)AlertDialog.Builder builder=new AlertDialog.Builder(Book.this); builder.setTitle("确认订座");//这是标题 builder.setMessage("确认订1号座");//这是标题内容 builder.setPositiveButton("确认", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub Intent intent=new Intent(Book.this, Main_menu.class); startActivity(intent); Book.this.finish(); } }); builder.setNegativeButton("取消", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub dialog.cancel(); } }); builder.create().show();//必须要写
Android中取消自定义dialog的标题栏, 只需在
dialog.setContentView(R.layout.popwin_chooseversion);
前面加一句:
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
加在这句之后会产生异常.
还要导入import android.view.Window;包. 0 0
- 对dialog(对话框)的一些理解
- Android Dialog对话框的一些基本用法
- jQuery UI Dialog 创建弹出对话框的一些参数
- android中的dialog 警告对话框,选择对话框,和一些自定义的对话框
- 对话框Dialog的使用
- Dialog 对话框的创建
- Dialog对话框的自定义
- Dialog (对话框的应用)
- 传统的Dialog对话框
- Dialog对话框的使用
- Dialog(对话框)的使用
- Android 的对话框 Dialog
- 常见的对话框Dialog
- 对话框Dialog的应用
- 对话框Dialog的应用
- 对一些概念的理解
- 对Jazz的一些理解
- 对鼠标的一些理解
- 【C#实现各类排序算法】
- SCANF函数
- c和指针详解------函数
- JavaSE学习笔记(2016.3.30)
- 【C++】VC++6.0 在win7 64中的安装
- 对dialog(对话框)的一些理解
- linux:getopt
- android中Handler源码的分析文章
- 238. Product of Array Except Self
- android自定义view-打造圆形ImageView(二)
- String类常用方法总结
- c语言:顺序栈的应用(二) 判断回文数
- Android学习之使用Comparable或Comparator比较和排序元素
- c++ static 类