android软键盘覆盖webview中的输入框 [英] android Soft keyboard cover the input box in the webview

查看:81
本文介绍了android软键盘覆盖webview中的输入框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Webview加载一些URL,Webview中有一个输入框.当我单击输入框时,软键盘会转换输入框,我该怎么办

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

推荐答案

如果您说您正在为android编写应用程序,并且在测试应用程序时软键盘覆盖了输入框,并且您想要解决此问题,您应该尝试以下操作:

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"

到清单中的标记和所有Web视图/视图.这样就可以修复它并调整屏幕,以使输入框不被覆盖.

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.

我遇到了类似的问题,我记得当时正在查找SO,有人建议使用此修复程序,并且对我有用.我不记得该修复程序的链接了:(

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 :(

这篇关于android软键盘覆盖webview中的输入框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆