android EditText隐藏软件盘
来源:互联网 发布:linux 关闭防火墙 编辑:程序博客网 时间:2024/06/05 15:07
1. FLAG_ALT_FOCUSABLE_IM
2. (如果输入法在窗口上已经显示,则隐藏,反之则显示)
3.AndroidMainFest
4. clearFocus
5. setInputType
- getWindow().addFlags(
- WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
- 源码注释:
- /** 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;
- 该方法会导致界面里面所有需要弹出软键盘的控件均无法显示软键盘。
- InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
- imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);
- <activity
- android:name=".RemoteCanvasActivity"
- android:configChanges="orientation|keyboardHidden"
- android:windowSoftInputMode="stateHidden|adjustResize" >
- <intent-filter>
- <action android:name="android.intent.action.VIEW" >
- </action>
- </intent-filter>
- <intent-filter>
- <action android:name="android.intent.action.VIEW" />
- <category android:name="android.intent.category.DEFAULT" />
- </intent-filter>
- </activity>
4. clearFocus
- editText.clearFocus();
5. setInputType
- editText.setInputType(InputType.TYPE_NULL);
0
上一篇:mark.vim
下一篇:android更新源
相关热门文章
- Android之开发环境搭建
- Android自定义View的实现...
- AndroidManifest.xml配置文件...
- Android相对布局+圆角按钮+Sha...
- 查看Android应用包名package和...
- linux dhcp peizhi roc
- 关于Unix文件的软链接
- 求教这个命令什么意思,我是新...
- sed -e "/grep/d" 是什么意思...
- 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
评论热议
0 0
- android EditText隐藏软件盘
- EditText隐藏软件盘
- EditText隐藏软件盘的问题
- Android隐藏软件盘
- Android隐藏软件盘
- android隐藏软件盘
- Android 隐藏软件盘
- Android Edittext 显示隐藏软键盘
- android 隐藏EditText光标
- android隐藏EditText光标
- 安卓(Android)在AlertDialog中的EditText获取焦点并弹出、隐藏软键盘(输入法软件)
- Android EditText设置默认不弹出软键盘,点击EditText外部隐藏软键盘,EditText获取焦点时隐藏hint
- android 禁止edittext自动弹出软件盘
- Android 隐藏EditText的焦点
- Android editText 隐藏密码框
- 处理Android中EditText软键盘显示与隐藏
- android EditText软键盘显示隐藏以及"监听"
- android 软键盘隐藏 activity初始化时edittext聚焦
- svn Error normalizing log message to internal format
- android生存周期
- tensorflow笔记:多层LSTM代码分析
- Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V
- mark.vim
- android EditText隐藏软件盘
- Spring的依赖注入(控制反转)的理解
- 设计模式之建造者模式
- android更新源
- android5.0: ?Unsupported major.minor version 51.0?
- "Running Android Lint" has encountered a problem.
- HANOI数学归纳法
- 关于Android中ANR的一些思考
- Java中System.loadLibrary() 的执行过程
原创粉丝点击
热门IT博客
热门问题
老师的惩罚
人脸识别
我在镇武司摸鱼那些年
重生之率土为王
我在大康的咸鱼生活
盘龙之生命进化
天生仙种
凡人之先天五行
春回大明朝
姑娘不必设防,我是瞎子
喜欢夹腿
小孩夹腿
夹腿有什么坏处
夹腿怎么办
蛙泳夹腿
怎样夹腿舒服
夹腿机
夹腿吧
儿童夹腿综合症
儿童夹腿综合征
幼儿夹腿
孩子夹腿
夹腿变黑
女童夹腿综合征
小孩夹腿怎么回事
儿童夹腿
女夹腿
夹腿坐
0形腿
夹腿综合症危害
男人夹腿
什么叫夹腿
夹腿鼠
夹腿女
孕妇夹腿
女孩喜欢夹腿
夹腿的坏处
夹腿图
女生夹腿危害
男孩夹腿综合症
夹腿的好处
夹腿综合征的危害
少女夹腿综合症危害
女生夹腿的危害
夹腿综合证
婴儿夹腿
儿童夹腿症
夹腿屏气综合症
女童夹腿综合症
小儿夹腿综合症怎么办
女人夹腿综合症