AlertDialog样式
来源:互联网 发布:人工智能的股票有哪些 编辑:程序博客网 时间:2024/06/05 20:02
new AlertDialog.Builder(context,android.R.style.Theme_DeviceDefault_Light_Dialog_NoActionBar) .setSingleChoiceItems(modes, 0, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { } }) .show();
单选Dialog
主题决定样式,这里选择android.R.style.Theme_DeviceDefault_Light_Dialog_NoActionBar
dialog.cancel:
回调setOnCancelListener的监听事件—–>执行dismiss
dialog.dismiss:
取消dialog—–>回调setOnDismissListener的监听事件
如果只是取消dialog,那么用哪个都一样的。(Dialog的子类同理)
阅读全文
0 0
- AlertDialog样式
- AlertDialog样式
- AlertDialog的样式修改
- AlertDialog自定义样式
- AlertDialog自定义样式
- 自定义AlertDialog列表样式
- AlertDialog 自定义样式
- AlertDialog自定义样式
- 自定义AlertDialog样式
- AlertDialog自定义样式问题
- AlertDialog的样式修改
- AlertDialog自定义样式
- Android自定义AlertDialog样式
- AlertDialog主题样式
- AlertDialog自定义样式
- 自定义AlertDialog样式
- 模拟Iphone 样式的 AlertDialog
- 关于AlertDialog的自定义样式
- javascript定时器做一个又快到慢的点名/抽奖效果
- webpack使用笔记(一)
- Struts2之ModelDriven接口实现登陆及退出
- 非单调队列
- html li标签前面添加图标三种方法
- AlertDialog样式
- 文件上传并且把文件名字保存到数据库(java+js代码)
- 纯JS实现页面滚动至顶部并自动显示或隐藏
- spring security3 配置使用注解
- Kotlin Reference (九) 抽象类、密封类
- HTML5 CSS3 经典案例:无插件拖拽上传图片 (支持预览与批量) (一)
- bat脚本执行带参数的sql指令(sql server)
- CenterOS-6.5 64位下载
- android zip 递归打包压缩,解压