查看移动软键盘,阻止其他用户界面对象其他用户、界面、键盘、对象

2023-09-05 03:27:31 作者:恶女通杀

我有一个容器观点,我想留在我看来底部在任何时候,坐在下方的滚动型。在滚动型有极少数的用户界面对象,一个是的EditText对象。目前,当用户敲击的EditText对象的内部,Android的softkeyboard出现,带来了容器视图它,并阻止一些UI对象。我怎样才能获得该容器,以便留在布局的底部在任何时候都不能与它出现时的键盘移动?

I've got a container view that I'd like to stay at the bottom of my view at all times that sits below a ScrollView. The ScrollView has a handful of UI objects, one being a EditText object. Currently, when the user taps inside of the EditText object, the android-softkeyboard appears, and brings the container view with it, and blocks some UI objects. How can I get that container view to stay at the bottom of the layout at all times and not move with the keyboard when it appears?

下面是截图 - http://d.pr/3LQ2

下面是我的layout.xml - http://d.pr/HmXC

Here's my layout.xml - http://d.pr/HmXC

在此先感谢,科尔

推荐答案

在清单中添加活性标记:

In manifest add in activity tag:

android:windowSoftInputMode="adjustPan"