Android的文字输入特殊UI项特殊、文字、Android、UI

由网友(掏心掏肺活着真累)分享简介:我创建了Android操作系统的IM客户端/服务器应用程序,和我目前放在一起的用户界面。现在,我的界面由一个的EditText 元素和按钮元素。当我一敲的EditText 元素,键盘弹出,并允许您键入。I'm creating an IM client/server application for the Andro...

我创建了Android操作系统的IM客户端/服务器应用程序,和我目前放在一起的用户界面。现在,我的界面由一个的EditText 元素和按钮元素。当我一敲的EditText 元素,键盘弹出,并允许您键入。

I'm creating an IM client/server application for the Android OS, and am currently putting together the user interface. Right now, my interface consists of a EditText element, and a Button element. When I tap on the EditText element, a keyboard pops up and allows you to type.

我想有有点像文本输入区和默认的Andr​​oid短信应用程序发送键。事情是这样的: 文本输入框和发送按钮会留在屏幕的底部,而当拍了拍,键盘将推动它上面的文本字段和按钮了。

What I would like to have is something like the text entry area and send button in the default Android SMS app. Something like this: The text input field and Send button would stay at the bottom of the screen, and when tapped on, the keyboard would push the text field and button up above it.

使用这可能仅的EditText 按钮元素?

感谢您的任何建议或意见!

Thank you for any suggestions or advice!

推荐答案

尝试设置机器人:在windowSoftInputMode = adjustResize 的活动 AndroidManifest.xml中。

您可以找到详细信息这里。

阅读全文

相关推荐

最新文章