Miguel is a professional software developer that has helped (volunteer and consulting) for dozens of companies through his firm Eridem AB.
Follow my @softwareInANutshell comics on Instagram!
Sometimes we need to resize the layout when the keyboard appears. For example, when you click in one of your
TextView, and this one is hidden by the keyboard (or maybe other menus on the bottom). Easily we can change this behavior adding a small setting to the Activity in the manifest.
Using the field
android:windowSoftInputMode="adjustResize" will do the work for us.
<!-- AndroidManifest.xml--> <activity android:name=".net.eridem.myapp.YourActivity" android:windowSoftInputMode="adjustResize"> </activity>