Android 软键盘:即使启用了软键盘,如何使布局底部的按钮(例如“保存”、“取消”等)始终可见?
我确信一定有一个简单的方法,但我还没有找到答案。
让我进一步解释一下。我的活动(看起来像申请表)有大量的 EditText 和按钮,它们的数量在运行过程中会有所不同。因此,尽管它们始终位于 ScrollView 中,但它们可能并不总是足够用于实际滚动。也就是说,我的布局底部有一些按钮,我希望它们始终可见,无论软键盘是否可见。目前点击EditText会弹出软键盘并隐藏底部的按钮。
请注意,我已经尝试使用“相对布局”和“调整平移”选项,但未成功。
预先感谢您的帮助。
I am sure there must be a simple way for this, but I havent found an answer yet.
Let me further explain. My activity (looks like an application form) has a good number of EditText and buttons, their numbers vary during the run. So, although they are always in a ScrollView, they might not always be enough of them to actually scroll on them. That said, there are a few buttons at the bottom of my layout which I want to be always visible, irrespective of whether the soft keyboard is visible or not. Currently clicking on an EditText pops up the soft keyboard and hides the buttons at the bottom.
Note, I have already tried using Relative Layout and AdjustPan options unsuccessfully.
Thanks in advance for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在此处阅读全文
you can read the full story here