sri404 / mobyfactory-uiwidgets-android

Automatically exported from code.google.com/p/mobyfactory-uiwidgets-android
0 stars 0 forks source link

Tab buttons rise above virtual keyboard when textfield in activity has focus #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Focus of a textfield in any activity brings up the virtual keyboard. The view 
is then resized so that the tab buttons are displayed on top of the virtual 
keyboard which can obscure data entry (especially when the autocomplete bar 
is displayed when the user starts typing).

Original issue reported on code.google.com by d.w.flan...@googlemail.com on 22 Mar 2010 at 5:12

GoogleCodeExporter commented 9 years ago
This can be fixed by adding android:windowSoftInputMode="adjustPan" to activity 
element within the manifest. E.g.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.codename.android"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" 
        android:label="@string/app_name"
        android:theme="@style/MyTheme"
        >

        <activity android:name=".MainActivity"
                  android:label="@string/app_name"
                  android:windowSoftInputMode="adjustPan">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-sdk android:minSdkVersion="7" />
</manifest> 

This prevents the view from resizing when the virtual keyboard is displayed.

Original comment by d.w.flan...@googlemail.com on 22 Mar 2010 at 5:16