[英]Soft keyboard hides on typing in Android EditText
I have a couple of EditText fields on a form and when I start typing in either of them, the soft keyboard hides on each character input. 我在表单上有几个EditText字段,当我开始输入它们中的任何一个时,软键盘会隐藏在每个字符输入上。
Is this something that is known and is there a way to handle this issue? 这是已知的东西吗,有没有办法解决这个问题? There doesn't seem to be anything special done to these fields to cause this issue. 似乎没有对这些字段进行任何特殊处理来导致此问题。
I've googled for a solution, also browsed through various questions here, nothing helpful so far though. 我已经在Google上寻找解决方案,还浏览了这里的各种问题,但到目前为止没有任何帮助。
Thank you. 谢谢。
you can try this 你可以试试看
android:windowSoftInputMode="adjustPan"
or 要么
android:windowSoftInputMode="adjustResize"
in manifeast file under your activity tab 在活动标签下的清单文件中
Add following line 添加以下行
android:windowSoftInputMode="stateHidden" android:windowSoftInputMode =“ stateHidden”
in manifest under your that activity. 在您的活动下的清单中。
it will work. 它会工作。
<activity android:name=".Mainactivity"
android:windowSoftInputMode="adjustPan"/>
add this in your manifest file 将此添加到清单文件中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.