Android 有输入框的页面,一打开就会弹出输入法,最简单屏蔽办法
16lz
2021-01-23
Android 有输入框的页面,一打开就会弹出输入法,想要屏蔽有很多种办法,以下这种是很简单的,只要在布局文件写上一个控件就行了。放在任意位置。
<LinearLayout
android:layout_width="0px"
android:layout_height="0px"
android:focusable="true"
android:focusableInTouchMode="true" />
这样打开就不会弹出输入法了。试试吧。直接看效果。
更多相关文章
- android中如何避免被弹出的输入法界面遮盖主界面
- android常用控件(二) RadioGroup RadioButton CheckBox Toast的使
- Android UI控件之CheckBox(复选框、多选框)
- android部分控件属性摘抄
- Android表格控件动态生成表格
- android api (83) ―― InputMethodSession [输入法]
- android输入法状态控制
- 【Android】防止UI界面被输入法遮挡(画面随输入法自适应)