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?
Share
You can set the
android:windowSoftInputModeattribute 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”.