如何才能在全屏模式下编辑 EditText?
如此处的横向图像所示: http:// /android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html 。
我不一定需要全屏显示,但我的问题是 EditText 位于软键盘下方,我不知道如何让整个内容显示在其上方。它是一个注释字段,填充从其他字段的末尾到屏幕底部的任何空白空间。目前,当我选择注释时,屏幕向上移动足以看到注释字段的顶部,但这还不够好。我希望注释字段的顶部移动到屏幕顶部,以最大化用户在编辑字段时看到的内容。
我在清单中的 softInputMode 是 adjustmentPan,但是更改这些设置对我没有任何作用。
As shown in the landscape images here: http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html .
I don't necessarily need to do the fullscreen thing, but my issue is that the EditText is below the soft keyboard and I cant figure out how to get the whole thing to display above it. Its a note field, and fills whatever open space there is from the end of my other fields to the bottom of the screen. Currently when I select the note, the screen moves up just enough to see the top of the note field, but this is not good enough. I want the top of the note field to move up to the top of the screen, to maximize what the user sees while they are editing the field.
My softInputMode in the manifest is adjustPan, but changing these settings has not done anything for me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在视图周围添加一个ScrollView以使其滑动,并将清单上的Activity更改为adjustPan以调整Resize(通常不推荐使用adjustPan)。
You need to add a ScrollView around the view to make it slide and change adjustPan to adjustResize (adjustPan is normally not recommended) to the activity on the manifest.