自定义对话框实现
来源:互联网 发布:台服dnf登陆器源码 编辑:程序博客网 时间:2024/06/04 20:01
//1.实例化对话框
wareOrderDialog = new Dialog(ShopCarActivity.this, R.style.dialog);LayoutInflater inflater = LayoutInflater.from(ShopCarActivity.this);
View view = inflater.inflate(R.layout.view_ware_order_dialog, null);
//2.获取对话框中的控件
Button confirmBtn = (Button) view.findViewById(R.id.shopcar_dialog_confirm_btn);Button cancelBtn = (Button) view.findViewById(R.id.shopcar_dialog_cancel_btn);
ImageView shopcarDialogClose = (ImageView) view.findViewById(R.id.shopcar_dialog_close);
shopcar_dialog_beizhu = (EditText) view.findViewById(R.id.shopcar_dialog_beizhu);
shopcar_dialog_beizhu.clearFocus();//解决进入activity自动弹键盘问题
//3.弹出层绑定对话框的布局
wareOrderDialog.setContentView(view);
wareOrderDialog.setCancelable(false);
wareOrderDialog.show();
//4.设置对话框中的点击事件
confirmBtn.setOnClickListener(confirm_click);cancelBtn.setOnClickListener(cancel_click);
shopcarDialogClose.setOnClickListener(cancel_click);
- 自定义对话框实现
- Android实现自定义对话框
- Android系统对话框和自定义对话框实现
- Android自定义对话框的实现
- Android自定义Alertdialog对话框实现
- 自定义对话框的实现--Android
- 用Dialog实现自定义对话框
- 选择对话框:自定义组合控件+自定义对话框 实现
- 选择对话框:自定义组合控件+自定义对话框 实现
- 选择对话框:自定义组合控件+自定义对话框 实现
- 各种对话框的实现(文字对话框,选择对话框,弹出输入对话框,单选,多选对话框,自定义对话框)
- 透明自定义对话框以及进度对话框的实现
- 透明自定义对话框以及进度对话框的实现
- 自定义DialogAlert对话框并实现对话框的复用
- symbian下实现自定义模态对话框
- 实现自定义消息对话框控件MsgBox简介
- IOS: 自定义AlertView实现模态对话框
- 自定义AlertView实现模态对话框
- iframe中使用jquery查找
- <label>标签for属性的妙用
- IT公司管理小技巧
- 常用的DOS命令
- Linux 常见命令(free, top)
- 自定义对话框实现
- div ul li模拟下拉选项(option标签)
- 线程中的死锁问题
- 超易药品进销存软件 V3.11
- TextRange对象的学习(一)
- A标签触发onclick事件而不跳转
- 三个有关jsp页面操作的小错误 ¶
- Google Chart API 生成图片
- jquery 选中checkbox兼容问题