tags:

views:

213

answers:

2

Is there a way to specify in your layout which widgets will shift and move when the software keyboard appears? In some layouts, It will shrink the innermost scrolling area automatically, just making your layout smaller, but there doesn't seem to be a rhyme or reason to when it does this. How can I tell it which widgets to shrink, etc?

+2  A: 

You can set the android:windowSoftInputMode attribute in the <activity> element in the manifest. Here's an article that covers the topic. Here's a pair of projects demonstrating the effect of resize vs. "pan-and-scan".

CommonsWare
Thanks, you've helped me yet again :)
synic
A: 

Not sure if this is related or not, but I have a dialog that whenever the softkeyboard appears, it shrinks my buttons. The loaded view shows the buttons stretched across the screen, after the edittext is selected, the buttons shrink and are pushed left.

TSDEV