简体   繁体   English

如何使软输入覆盖屏幕底部?

[英]How to make softinput cover the screen bottom?

Now one of my layout with edittext align in the bottom ,when the edittext is clicked,the whole page moved up and make room for the softinput; 现在,我的其中一个带有edittext的布局在底部对齐,当单击edittext时,整个页面向上移动并为软输入腾出空间; But I just want the bottom layout moved up,the solution is ? 但是我只想将底部布局向上移动,解决方法是?

Suppose you have a stack of Ten plates. 假设您有一叠十个盘子。 You Put another plate at the botton, number eleven plate, I mean. 我是说,您将另一个盘子放在11号盘子上。 Do you really think only th eplate number ten willmove, and not the others? 您是否真的认为只有第10个平板会移动,而其他没有? Seriously? 认真吗

You probably have to make a change to your manifest file: I use this one to let the soft keyboard appear and making the rest of the view scrollable: 您可能需要对清单文件进行更改:我使用此文件来显示软键盘,并使其余视图可滚动:

 <activity android:name=".GroupProperties" android:windowSoftInputMode="stateHidden|adjustResize" android:label="@string/groepsleden_toevoegen" > </activity> 

Depending on your layout you might also use 根据您的布局,您可能还会使用

android:windowSoftInputMode="adjustPan"> android:windowSoftInputMode =“ adjustPan”>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM