java – Android soft keyboard resize layout-ThrowExceptions

Exception or error:

When the virtual keyboard opens, it resizes my layout.
How can i made for put the keyboard on my layout? And what it doesn’t re-size my layout?

How to solve:

You can use manifest flags to configure the effect of the virtual keyboard. See


Android soft keyboard resize layout

<activity android:name=".activity.SignUpActivity"
    android:windowSoftInputMode="adjustResize" />

It’s Working for me try it.



adjustPan only resizes the input field by pushing it up just a little above the keyboard, in which case the keyboard still covers every other view beneath it.


use only this code:


used in manifest-application tag for all application

Leave a Reply

Your email address will not be published. Required fields are marked *