Skip to content Skip to sidebar Skip to footer

Keyboard Overlapping Issue On Edittext With Adjustpan Not Working

I am using this code But the keyboard is still overlapping EditText. what can be done

Solution 1:

adjustResize fails to work when you use a FullScreenActivity. One solution would be to contain the whole layout in a ScrollView and scroll it to position editText.getY() + editText.getMeasuredHeight() when the editText gains focus.

Or, if you want a quick fix to the problem, have at look at this solution on a similar question here.

Solution 2:

Full screen disables soft input adjustment modes. See:

Android How to adjust layout in Full Screen Mode when softkeyboard is visible

https://issues.apache.org/jira/browse/CB-4404

https://groups.google.com/forum/#!msg/android-developers/T193nVgXDSA/O6UZmDqskFYJ

Solution 3:

The property android:windowSoftInputMode="adjustResize" doesn't work with full screen activity, you have to remove activity full screen flags in order to get advantage of adjust resize.

see this: A fullscreen window will ignore a value of SOFT_INPUT_ADJUST_RESIZE for the window's softInputMode field; the window will stay fullscreen and will not resize.

Solution 4:

android:maxLines="1" in your xml file and use in mainfiest file.

<activityandroid:name="Logintab"android:windowSoftInputMode="adjustPan"android:label="@string/app_name"></activity>

Post a Comment for "Keyboard Overlapping Issue On Edittext With Adjustpan Not Working"