保持Android的视图可见区域,如果键盘出现 [英] Keep android view in visible area if keyboard comes up

查看:96
本文介绍了保持Android的视图可见区域,如果键盘出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个垂直堆叠的登录按钮,用户名和密码编辑框的底部有一个简单的登录屏幕。

I created a simple login screen that stacks a login button, the username and password edit boxes vertically from the bottom.

当有人点击的用户名/密码字段,虚拟键盘来和HIDS它下面的编辑框或按钮。我已经在登录按钮始终保持在可视区域的另一个应用程序看到这....我怎么能做到这一点?

When someone clicks the username/password fields, the virtual keyboard comes up and hids the editbox or button below it. I have seen this in another application that the login button always stays in the visible area.... how can I achieve this?

推荐答案

有一个博客帖子为:<一href="http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html">http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html

这篇关于保持Android的视图可见区域,如果键盘出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆