How to make textview stay visible with softkeyboard

If you have a textview that spans a few lines, but have buttons or something else below the textview that you would like to be shown, you can have the textview object be resized automatically to make room for Android’s softkeyboard. To do this, simply add one line to your AndroidManifest.xml file.


This line of code should go inside of the

android:windowSoftInputMode="adjustResize" >

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.