点击AlertDialog按钮不关闭对话框
来源:互联网 发布:app软件重新制作 编辑:程序博客网 时间:2024/05/16 11:28
//保持dialog不关闭的方法private void keepDialogOpen(AlertDialog dialog) { try { java.lang.reflect.Field field = dialog.getClass().getSuperclass().getDeclaredField("mShowing"); field.setAccessible(true); field.set(dialog, false); } catch (Exception e) { e.printStackTrace(); }}//关闭dialog的方法private void closeDialog(AlertDialog dialog) { try { java.lang.reflect.Field field = dialog.getClass().getSuperclass().getDeclaredField("mShowing"); field.setAccessible(true); field.set(dialog, true); } catch (Exception e) { e.printStackTrace(); } dialog.dismiss();}
0 0
- 点击AlertDialog按钮不关闭对话框
- 点击AlertDialog的按钮时,不自动关闭对话框
- AlertDialog 利用反射使得点击按钮使对话框不关闭
- 【Android】AlertDialog点击按钮后不自动关闭对话框
- Android设置AlertDialog点击按钮对话框不关闭(转)
- Android:实现点击AlertDialog上按钮时不关闭对话框
- 实现点击AlertDialog上按钮时不关闭对话框
- Android:实现点击AlertDialog上按钮时不关闭对话框
- 实现 AlertDialog 点击确定按钮不关闭
- Android实现点击AlertDialog上按钮时不关闭对话框的方法
- Android实现点击AlertDialog上按钮时不关闭对话框的方法
- Android实现点击AlertDialog上按钮时不关闭对话框的方法
- 让AlertDialog在点击按钮后不消失、不关闭
- 让AlertDialog在点击按钮后不消失、不关闭
- Android Dialog点击按钮不关闭对话框
- AlertDialog点击按钮后对话框不消失的处理方法
- AlertDialog点击按钮后对话框不消失的处理方法
- AlertDialog 点击按钮后不关闭的处理办法
- SVM
- Mos_Tec Tutorial : 001 - iOS视频录制
- 用booktabs宏包改善你的表格
- 微信api 关注事件
- iOS 9之后两个应用的相互调用
- 点击AlertDialog按钮不关闭对话框
- 微信api 第三方平台授权 登录 ,获取用户信息
- win7 linux 搭建redis单机环境 详细
- App运营八大法则
- D. Flowers
- quick-mark: How Latency is Measured
- 网站错误处理、运行时间、文件大小、接受和发送编码设定
- eclipse下JVM terminated. Exit code=-1的解决方法
- Mos_Tec Tutorial : 002 - iOS视频写入