Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android 2.2 Web View windows moves up when Virtual Keyboard appears

I am developing an Application using Phonegap on Android. Everything works fine on OS 2.1 but on OS 2.2 when we click on any input type text field the keyboard appears and whole window moves to UP side and the input type field becomes invisible. Can anybody tell me what exactly be the problem and can it be solved using javascript? How to stop windows resizing functionality on Android 2.2?

I found the same problem on Text Input on android phone is not in view when the keyboard for webview comes up? also, but not the solution.

like image 540
Bhupi Avatar asked Feb 23 '11 09:02

Bhupi


1 Answers

Adding this

android:windowSoftInputMode="adjustPan"

to your in AndroidManifest.xml will solve the issue

like image 124
Vinayak Bevinakatti Avatar answered Nov 15 '22 01:11

Vinayak Bevinakatti