user3244162
user3244162

Reputation: 101

Android virtual KeyBord and Edit Text

I have a problem with my virtual keyboard, it hides the text boxes in which I want to write

my xml manifest, I added code to try but nothing works (Still the keyboard hides text boxes ):

        <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="

http://schemas.android.com/apk/res/android"
    package="com.example.Pointage"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="15"
        android:targetSdkVersion="17" />

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" 
        android:windowSoftInputMode="adjustPan"
        >

        <activity
            android:name="com.example.test.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>
        <activity
            android:name="com.example.test.Activity2"
            android:label="@string/title_activity_activity2"
             >
        </activity>
        <activity
            android:name="com.example.test.Bdd"
            android:label="@string/title_activity_bdd" >
        </activity>
    </application>

</manifest>

Upvotes: 0

Views: 80

Answers (2)

Mobility
Mobility

Reputation: 263

This should work

android:windowSoftInputMode="adjustPan"

Upvotes: 0

Shahzeb
Shahzeb

Reputation: 3734

try this:

android:windowSoftInputMode="stateVisible|adjustPan"

or

android:windowSoftInputMode="stateVisible|adjustResize">

Reference link

Upvotes: 1

Related Questions