Jonathan Dang Jonathan Dang - 1 month ago 13
Android Question

WebView flickering when keyboard show up in PhoneGap app

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

Answer

I found answer on SO.

Android WebView Hardware Accelerated Keyboard Glitch

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

it solve my problem.