0

I have a EditText field to enter a mobile number. It is at the bottom of the layout. I need to push the content up when I click in editText field so that it will not be covered by the soft keyboard.

I tried:

  1. getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);

in OnCreate, ClickListner, TouchListner

  1. android:windowSoftInputMode="adjustPan" in manifest.

Both the above methods helped me to push the content when i click the edittext field for the first time. but when i click the same field 2nd time the keyboard covers the field. i need to push the content each time I press the field.

What should i do for that?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115

0 Answers0