Wednesday, November 21, 2012

Prevent Android UI Resize When Keyboard Opens

An android activity may be resized when the soft keyboard opens.

Sometimes that's not the behavior we want.

To disable the resizing, add the following line to the activity declaration on the manifest:

If the UI contains a ScrollView, then you can also add the following to the view declaration to prevent the resizing:
android:isScrollContainer="false" 

No comments:

Post a Comment