Why getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); doesn't work in landscape mode?
Asked Answered
P

1

8

I have the following code in my Main Activity's 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 layout-land/main.xml

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

Why softinput is superimposed on top of the UI but does not change its size in landscape mode?
How can I do to make an UI with softinput behave in landscape mode the same as in portrait mode?

Parmentier answered 18/3, 2011 at 11:11 Comment(0)
A
0

Hey Divers it may be that fact you are missing a closing quotation mark on your IME options declaration in your manifest.xml.

Hope this helps !!

Doug

Adept answered 28/8, 2014 at 19:31 Comment(1)
Sorry just started actually using this site and I always answer as many unanswered questions as I can they should probably remove a question after three years.... anyway sorry wasnt soonerAdept

© 2022 - 2024 — McMap. All rights reserved.