Why getWindow (). SetSoftInputMode (WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); not working in landscape mode?

I have the following code in my main activity onCreate:

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

I have the following code in my ground layout / main.xml

 <EditText android:imeOptions="flagNoExtractUi</EditText> 

Why is softinput superimposed on top of the user interface but doesn't resize it in landscape mode?
How to make the user interface with softinput work in landscape mode in the same way as in portrait mode?

+6
android input resize landscape
source share
1 answer

Hey divers, perhaps this is the fact that there is no quotation mark in the .xml declaration of your .xml manifest.

Hope this helps!

Doug

0
source share

All Articles