3

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.

LF00
  • 27,015
  • 29
  • 156
  • 295
  • 1
    Have you check with this `android:windowSoftInputMode="adjustResize"`. – Harshad Pansuriya Dec 07 '16 at 05:29
  • I have not tryed that, I Will check it. – LF00 Dec 07 '16 at 05:34
  • i had a similar problem, i solve it by hackish method like when edit text gets focus i made top views above it Visibility gone and added a onfocus change listner for edit text, and on focus changes hide keyboard and make above views visibility Visible – Manohar Dec 07 '16 at 05:39
  • @Redman currently I add some padding at the bottom of the page. But there is some white space, seems not well. – LF00 Dec 07 '16 at 05:55
  • @Ironman I checked it, it works. Will you make it an answer. – LF00 Dec 08 '16 at 06:29
  • Possible duplicate of [Textbox hidden below keyboard in Android webview](https://stackoverflow.com/questions/7026854/textbox-hidden-below-keyboard-in-android-webview) – Roko C. Buljan Jul 13 '17 at 18:20

2 Answers2

1

Instead of adding this

android:windowSoftInputMode="adjustPan"

you have use this

android:windowSoftInputMode="adjustResize"
Harshad Pansuriya
  • 20,189
  • 8
  • 67
  • 95
0

After days of work! I get this:

android:windowSoftInputMode="adjustPan" works for android native Edittext, but not for webview or xwalkview.

Use android:windowSoftInputMode="adjustResize" or not set this setting will works for webview or xwalkview.

LF00
  • 27,015
  • 29
  • 156
  • 295