简体   繁体   English

如何在Android上阻止键盘推送webview

[英]How to prevent keyboard push up webview at Android

I have an EditText and a WebView in a layout(xml). 我在布局(xml)中有一个EditText和一个WebView。 The WebView is at the bottom of the screen. WebView位于屏幕的底部。

When I touch the EditText, the keyboard push up the webview to the upper part of the keyboard, and as result it covers the EditText. 当我触摸EditText时,键盘将webview向上推到键盘的上半部分,结果它覆盖了EditText。

I want maintain the webview at the bottom of my screen, displayed or not displayed the keyboard. 我想在屏幕底部维护webview,显示或不显示键盘。

Excuse my English, Im not American. 请原谅我的英语,我不是美国人。

尝试在AndroidManifest.xml中使用android:windowSoftInputMode="stateHidden|adjustPan进行活动。希望有帮助

put this in your menifes in your activity tag 把它放在你的活动标签中的menifes中

android:windowSoftInputMode="stateHidden|adjustPan"

Done 完成

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM