【发布时间】:2011-07-18 02:11:29
【问题描述】:
我的 Main Activity 的 onCreate 中有以下代码:
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
我的 layout-land/main.xml 中有以下代码
<EditText android:imeOptions="flagNoExtractUi</EditText>
为什么 softinput 叠加在 UI 之上,但在横向模式下不改变其大小?
如何使带有软输入的 UI 在横向模式下的行为与纵向模式下的行为相同?
【问题讨论】:
标签: android input resize landscape