Dialog与软键盘共存的问题
来源:互联网 发布:刘文展 举报事件知乎 编辑:程序博客网 时间:2024/06/10 14:50
Dialog与软键盘共存的问题,当对话框弹出时,系统会将键盘关闭的,如果要共存,WindowManager中有这样一个标记
/** Window flag: invert the state of {@link #FLAG_NOT_FOCUSABLE} with * respect to how this window interacts with the current method. That * is, if FLAG_NOT_FOCUSABLE is set and this flag is set, then the * window will behave as if it needs to interact with the input method * and thus be placed behind/away from it; if FLAG_NOT_FOCUSABLE is * not set and this flag is set, then the window will behave as if it * doesn't need to interact with the input method and can be placed * to use more space and cover the input method. */ public static final int FLAG_ALT_FOCUSABLE_IM = 0x00020000;
意思就是说焦点覆盖输入法的空间,也就是在输入法上面叠层
设置方法:在dialog对象里面获取window窗体,设置这个标记
xxDialog.
getWindow().setFlags( WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM, WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
1 0
- Dialog与软键盘共存的问题
- 解决Android Dialog 和软键盘共存
- dialog 自动弹出软键盘的问题
- Dialog和软键盘在屏幕上的并存问题:
- 解决自定义Dialog无法弹出软键盘的问题
- Android Dialog弹出时的软键盘弹出问题
- Android Dialog与软键盘的正确打开方式
- 系统级dialog与软键盘的冲突处理
- 自适应软键盘的Dialog以及监听软键盘弹起
- 自适应软键盘的Dialog以及监听软键盘弹起
- 自适应软键盘的Dialog以及监听软键盘弹起
- popuWindow和软键盘共存
- Android PopuWindow 和 软键盘共存的设置
- PopuWindow和软键盘共存时的设置
- dialog软键盘隐藏
- 自定义Dialog中点击EditText无法弹出软键盘的问题
- 解决dialog中嵌套EditText,自动弹出软键盘的问题
- 【Android】解决使用Dialog + EdiText 实现评论功能时,软键盘不协调的问题
- file结构
- mysql下如何更改database下所有表的数据引擎--MyISAM 到InnoDB
- Qt交叉编译环境-undefined reference to `inotify_init1@GLIBC_2解决
- easyui实现ValidateBox自定义验证数据库中是否存在重复字段
- Gradle学习基础(3):build脚本基础知识
- Dialog与软键盘共存的问题
- Android 代码改变ImageView的大小
- android greenDao 工具类(一)
- 使用SHBrowseForFolder函数打开文件目录对话框
- angularjs 中通过ui-router设置不同网页不同<title>内容
- Ubuntu修改默认打开方式
- file结构
- Linux下date命令,格式化输出,时间设置
- ArrayUtils