0

I am developing a web app on PhoneGap framework.

I found a weird situation which only happend on Android 4.0 ICS device.

when I tap on an input, the whole view will shrink to fit the new height, it happend again after I push the back button to dismiss the keyboard, flickering again.

the problem only happend when I wrap the code inside native container(PhoneGap), it won't flickering in stock browser.

any ideas?

PhoneGap 2.0.0

3 Answers3

1

I found answer on SO.

Android WebView Hardware Accelerated Keyboard Glitch

set android:windowSoftInputMode="adjustPan" in your activity manifest file,

it solve my problem.

Community
  • 1
  • 1
0

I resolve the problem seting:

<application android:hardwareAccelerated="false" ...>

in your activity manifest file (my_app/platforms/android/AndroidManifest.xml).

rjurado01
  • 5,337
  • 3
  • 36
  • 45
-1

i have tried this, and it worked form me :)

set this line in activity tag of android manifest file android:windowSoftInputMode="adjustPan|stateHidden"

Kamaljit
  • 457
  • 4
  • 7