简体   繁体   中英

android:layout_alignParentBottom = “true” with keyboard use

I have a button bar (its parent is a RelativeLayout of the total screen) on the bottom of screen (with the help of android:layout_alignParentBottom = "true")

The thing is, when the keyboard is shown, this bar appeared just above the keyboard, which reduces the size of the rest of the display.

Have you any idea on how to force the button bar to stay on the bottom of the screen even when the keyboard is shown?

In AndroidManifest.xml , set android:windowSoftInputMode="adjustPan" to your activity. See doc for more details.

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