关于AlertDialog弹出后,触摸其他区域Dialog消失的问题
来源:互联网 发布:开淘宝网店怎么找货源 编辑:程序博客网 时间:2024/05/17 22:15
第一步创建一个builder对象:
AlertDialog.Builder builder = new AlertDialog.Builider(this);//使用内部的静态Builder类创造builder对象
AlertDialog ad = builder.create();//使用builder调用create方法得到一个AlertDialog的实例
ad.setCanceledOnTouchOutside(false);//设置此方法为点击其他区域dialog不消失,设置为true是消失
ad.show();//展示dialog。。。这里注意千万不要调用builder.show();方法。我就是犯了这个错误。
0 0
- 关于AlertDialog弹出后,触摸其他区域Dialog消失的问题
- Dialog点击其他区域消失
- android alertdialog 点击其他区域消失
- 解决Alertdialog触摸对话框边缘消失的问题
- AlertDialog在触摸对话框边缘外部,对话框消失的问题
- android:Dialog点击其他区域消失
- android:Dialog点击其他区域消失
- android之AlertDialog 点击其他区域自动消失
- Android alertdialog弹出框消失问题
- 安卓弹出使用Dialog创建的对话框之后触摸屏幕就消失了的解决方法
- 点击弹出全屏dialog 触摸消失 带动画
- AlertDialog 点击按钮后让dialog 不消失
- 如何使Dialog可以通过点击其他区域消失。
- 如何使Dialog可以通过点击其他区域消失
- 关于Android中AlertDialog的使用问题:点击AlertDialog外部不消失的代码操作
- Android弹出框PopupWindow,Dialog,AlertDialog.Builder,AlertDialog的一知半解
- Android Dialog 点击弹出框外部 弹出框消失的问题
- 关于利用AlertDialog实现底部弹出菜单的位置问题
- sqlserver存储过程笔记
- mysql 更新sql脚本: you are using safe update mode and you tried to update a table
- 横屏代码:
- iptables 端口转发功能简单例子
- Xcode6.x+opencv配置成功
- 关于AlertDialog弹出后,触摸其他区域Dialog消失的问题
- Android strings.xml中空格符的标识步骤附xml特殊字符表示法
- 一般方式对手机强行设置横屏,会导致Activity的各个生命周期被调用两次。
- 游戏开发中常用的设计模式
- 【转】命令行启动虚拟机
- Java 命名规范
- hdu 4288 Coder
- sgu206
- 对于View类的requestLayout()方法理解: