android Soft keyboard cover the input box in the webview

后端 未结 1 1807
-上瘾入骨i
-上瘾入骨i 2021-01-23 10:21

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条回答
  •  伪装坚强ぢ
    2021-01-23 11:00

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

    0 讨论(0)
提交回复
热议问题