0

After searching many related threads , i am posting this question .

My problem is that when i click on the editText box the Keyboard popup pushes the UI and the keyboard draws at the bottom rather i want the keyboard to draw over my UI and according to Android - Adjust screen when keyboard pops up?

I tried android:windowSoftInputMode="adjustPan" in my manifest file but that didnt solve my problem . Again i get the same issue .

Is there any other solution , any related answers are welcomed . Thanks in advance .

Community
  • 1
  • 1
VIGNESH
  • 2,023
  • 8
  • 31
  • 46

4 Answers4

1

In your AndroidManifest.xml, add the following line under the activity with the keyboard:

android:windowSoftInputMode="adjustNothing"

Duplicate: Keyboard Showed messed up elements' position

Community
  • 1
  • 1
Heigo
  • 936
  • 8
  • 18
1

I had this problem as well, and even though

android:windowSoftInputMode="adjustPan"

should work, try putting the following code instead, in the onCreate() method of your activity:

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
Dom
  • 1,427
  • 1
  • 12
  • 16
0

i think android:windowSoftInputMode="adjustResize" is what you are looking for

mstrengis
  • 829
  • 5
  • 15
0

Insted of ..

 android:windowSoftInputMode="adjustPan"

Try this..

android:windowSoftInputMode="adjustResize"
amalBit
  • 12,041
  • 6
  • 77
  • 94