Android Keyboard hides EditText Android Keyboard hides EditText android android

Android Keyboard hides EditText


In manifest add this line on the particular activity tag:

 android:windowSoftInputMode="adjustPan" 


For that you have to declared in your activity manifeast

         <activity            android:name=".activityname"            android:label="@string/app_name"            android:windowSoftInputMode="adjustPan|adjustResize" >            <intent-filter>                <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />            </intent-filter>        </activity>


Here is simple solution for Android EditText issue of hiding behind SoftKeypad.Use the code in AndroidManifest.xml file of the project module.

<activity        android:name="com.example.MainActivity"        android:label="@string/activity_main"        android:windowSoftInputMode="adjustResize|stateHidden" />

This code worked for me.
Inside the manifest file in activity tag add this attribute:

android:windowSoftInputMode="adjustResize|stateHidden"

There are more such values for this attribute (android:windowSoftInputMode) which will come as recommendation list. You can check with them also.