安卓:我如何prevent软键盘,从推着我的看法吗?推着、我的看法、键盘、prevent

由网友(贪恋人间)分享简介:我有一个垂直滑动抽屉在我的应用程序的底部。当软键盘打开时,它推动了抽屉里了选项卡,以便它位于上盖的键盘。其实我希望它保持在屏幕的底部,成为隐藏在键盘显示时。 I have a vertical sliding drawer at the bottom of my app. When the soft keyboard...

我有一个垂直滑动抽屉在我的应用程序的底部。当软键盘打开时,它推动了抽屉里了选项卡,以便它位于上盖的键盘。其实我希望它保持在屏幕的底部,成为隐藏在键盘显示时。

I have a vertical sliding drawer at the bottom of my app. When the soft keyboard opens, it pushes the tab for the drawer up, so it sits atop the keyboard. I actually want it to remain at the bottom of the screen, becoming hidden when the keyboard is shown.

任何人都遇到了这个问题?知道如何解决它?

Anyone else run into this issue? Know how to fix it?

推荐答案

您可以简单地切换您的活动的windowSoftInputMode标志为adjustPan。 检查官方文档以获得更多信息。

You can simply switch your activity's windowSoftInputMode flag to "adjustPan". Check the official documentation for more info.

<activity
   ...
   android:windowSoftInputMode="adjustPan"> 
</activity>
阅读全文

相关推荐

最新文章