0

I have an activity with 5 EditText views and a bottom button. I specified

 android:windowSoftInputMode="adjustPan"

here everything work fine only once, that is the EditText field is staying just above the bottom button, it lost it's focus if it has the cursor on it or any text. I tried changing the

 android:windowSoftInputMode="adjustResize"

but here it brings up the bottom button above the keyboard. What should I change for making it work properly?

Ariel Magbanua
  • 2,799
  • 6
  • 32
  • 41
LvN
  • 641
  • 1
  • 5
  • 21

1 Answers1

0

Using adjustResize resizes the layout so the button bar appears above the EditTexts. You can combine the adjustment specifications. Try if you can get the desired result.

e.g.:

<activity android:windowSoftInputMode="stateVisible|adjustResize" . . . >

for further information: developer.android.com

Mibit
  • 196
  • 10