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

编程入门 行业动态 更新时间:2024-10-10 08:22:34
本文介绍了安卓:我如何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软键盘,从推着我的看法吗?

本文发布于:2023-06-05 22:05:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/529909.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:推着   我的看法   键盘   prevent

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!