android Soft keyboard cover the input box in the webview

纵然是瞬间 提交于 2019-12-20 05:16:41

问题


I use Webview to load some url ,there is a input box in the webview .when I click the input box ,the soft keyboard conver the input box ,how can i do to solve


回答1:


If you are saying that you are making an application for android and that the soft keyboard is covering an input box when you are testing your application and you would like to fix this issue, you should try the following:

android:windowSoftInputMode="adjustResize"

to the the tag in the manifest and to all your webviews/views. This should fix it and adjust the screen so that the input box isn't covered.

I had a similar issue and I remember looking up on SO and somebody was suggesting this fix and it worked for me. I don't remember the link to that fix :(



来源:https://stackoverflow.com/questions/26051724/android-soft-keyboard-cover-the-input-box-in-the-webview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!