简体   繁体   中英

showSoftwareKeyboard unsets fullscreen and alters the layout

When I click a TextInput field, the software keyboard shows up, but it seems like it tries to compress the entire layout in the remaining space above the keyboard. All elements with relative size ends up smaller. Are there any general guidelines for solving this problem?

To fix it you should use LinearLayout . Because Relative depends of other elements.

您需要在应用程序标签内的AndroidManifest.xml文件中添加android:windowSoftInputMode =“ adjustPan”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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