我试图在我的 Activity
中修复布局调整大小当键盘出现在屏幕上时。我试过输入 manifest
在 activity
上: windowsSoftInputMode="stateAlwaysHidden"
但没有结果,我的layout
当我打开 keyboard
时仍在调整大小与 Messenger 上的某人不同寻常。
最佳答案
如果您正在做我认为您正在做的事情,stateAlwaysHidden
不是解决问题的方法。
<activity android:windowSoftInputMode="adjustPan" >
来自文档
The activity's main window is not resized to make room for the soft keyboard. Rather, the contents of the window are automatically panned so that the current focus is never obscured by the keyboard and users can always see what they are typing.
这就是,我想你想要的。平底锅不要换
这是相关文档的链接 http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft
关于Android Facebook Messenger 键盘调整 Activity 布局,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33524862/