本文介绍了安卓:我如何prevent软键盘,从推着我的看法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个垂直滑动抽屉在我的应用程序的底部。当软键盘打开时,它推动了抽屉里了选项卡,以便它位于上盖的键盘。其实我希望它保持在屏幕的底部,成为隐藏在键盘显示时。
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>更多推荐
安卓:我如何prevent软键盘,从推着我的看法吗?
发布评论