Android Keyboard Pushes Application Up

335 views
Skip to first unread message

ARolek

unread,
Aug 11, 2011, 4:37:29 PM8/11/11
to phonegap
This issue can be fixed by modifying the AndroidManifest.xml file.
For example:

<application android:icon="@drawable/icon" android:label="@string/
app_name"
android:debuggable="true">
<activity android:name=".production"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

The key is the line:

android:windowSoftInputMode="adjustNothing"

When that is placed correctly the soft keyboard will not push the app
up but overlay on top of the app.

Enjoy -

Alexander Rolek

Wilin

unread,
Aug 12, 2011, 11:20:14 AM8/12/11
to phonegap
This flag is not in the SDK for Android 2.1
Reply all
Reply to author
Forward
0 new messages