Search code examples
androidinputwebviewandroid-softkeyboardxwalkview

Textbox hidden below keyboard in Android XWalkView or WebView


Edit: this also adjust to webview!

I use XWalkView of corsswalk in my android app. In the XWalkView there are many inputs in it. When I input something for the input at the bottom , the soft keyboard covers it. I use android:windowSoftInputMode="adjustPan" in the activity,

or in addition add android:isScrollContainer="true" in the xwalkview,

But neither works.

And help will be appreciated.


Solution

  • Instead of adding this

    android:windowSoftInputMode="adjustPan"
    

    you have use this

    android:windowSoftInputMode="adjustResize"