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.
I found answer on SO.
android:windowSoftInputMode="adjustPan" in your activity manifest file,
it solve my problem.