调整滚动视图时,键盘达 [英] Adjust scrollview when keyboard is up

查看:122
本文介绍了调整滚动视图时,键盘达的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这一个形式的活动。因为形式是很长,我用一个滚动视图。

I have an activity with a form in it. Because the form is quite long, I've used a scrollview.

的问题是,当键盘上滚动视图不会改变。键盘滚动视图的最后部分重叠。

The problem is that the scrollview doesn't change when the keyboard is up. The keyboard overlaps the last part of the scrollview.

我如何能确保该键盘是滚动视图下方,滚动视图进行调整,以适应它上面的空间?

How can I make sure that the keyboard is below the scrollview and the scrollview is adjusted to fit the space above it?

在此期间,有没有办法,以确保按钮'previous'和'下一个'在键盘呢?

In the meanwhile, is there a way to make sure the buttons ‘previous’ and ‘next’ are in the keyboard as well?

推荐答案

在应用程序的清单文件,添加以下到所需的<活动/> -

In the application's manifest file, add the following to the desired <activity /> --

 android:windowSoftInputMode="stateAlwaysHidden|adjustResize|adjustPan"

这篇关于调整滚动视图时,键盘达的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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