Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android:layout_alignParentBottom = "true" with keyboard use

Tags:

android

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?

like image 540
Joze Avatar asked Mar 05 '13 14:03

Joze


1 Answers

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

like image 102
Andrii Chernenko Avatar answered Sep 20 '22 19:09

Andrii Chernenko