How to avoid floating keyboard?

4

I'm testing my app on a Samsung tablet and the number pad stays floating, the keyboard stays on top of my application, does anyone know how to disable this in code? Thanks in advance!

obs: The floating keyboard is unique to Samsung, so I can not resolve it.

    
asked by anonymous 23.10.2015 / 19:33

1 answer

5

If I just realized, you just have to add

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);

Or by xml:

android:windowSoftInputMode="adjustResize"

This will make the layout fit and make room for the keyboard to open, not overlapping.

    
23.10.2015 / 19:50