Android: How To Avoid Layout Being Pushed When Keyboard Invoked
I have a layout as below
Solution 1:
Out of all properties under android:windowSoftInputMode in manifest the only thing that worked is
android:windowSoftInputMode="adjustNothing"
Solution 2:
Read article here: http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html You should add in manifest android:windowSoftInputMode="adjustResize" parameter to your activity tag.
EDITED: Proper flag is: android:windowSoftInputMode="adjustResize"
Solution 3:
In my AndroidManifest file, I added the the following code to the activity:
android:windowSoftInputMode="adjustPan"
HISTORY
Actually, I tried AdjustResize and AdjustNothing but it didn't work on my end so I tried other ways. I found this answer useful and hope it solves your problem as well! :)
Post a Comment for "Android: How To Avoid Layout Being Pushed When Keyboard Invoked"