Answer the question
In order to leave comments, you need to log in
When opening the keyboard, there is a big gap between the keyboard and the edittext?
When opening the keyboard, there is a big gap between the keyboard and the edittext?
Here is the screenshot:
How to deal with it? Appears on Sony phones with resolutions less than hd.
From what I've tried. In the manifest for the activity, I wrote: android:windowSoftInputMode="adjustPan"
also, before the keyboard is called, the edittext focus is transferred. And a keyboard call is made
addText.requestFocus();
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question