【发布时间】:2012-07-12 07:13:22
【问题描述】:
我在一个活动中显示了一个编辑对话框,当软键盘显示时,活动的窗口将被调整为太小,看起来很糟糕。 I don't want the window of the activity be resized and layout. I just want the keyboard can cover on the activity window and the dialog move to the top so that soft keyboard have room to show.
我曾尝试在清单中使用 android:windowSoftInputMode="xxxxx",但没有一种模式适合我的情况。我也找到了类似的question,但是并没有解决我的问题。
编辑:我已经尝试过setImeOptions 和getWindown().setFlags,但仍然没有成功,任何建议都将不胜感激。
EDIT2:我在 3.0 中尝试过,并使用 android:windowSoftInputMode="adjustNothing",效果很好,但我如何在 2.3 上实现呢?
【问题讨论】: