How to make button stay on the bottom when soft keyboard goes up
In AndroidManifest.xml
, set android:windowSoftInputMode="adjustPan"
to your activity.
Like this.
<activity
android:windowSoftInputMode="adjustPan">
Or:
<activity
android:windowSoftInputMode="adjustPan|adjustResize">
Also you can do this Programmatically.
Use this code in
onCreate()
method:
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
Check this for Reference.
Try this
<activity
android:windowSoftInputMode="adjustPan">
or in code
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
try this....
<activity
android:windowSoftInputMode="adjustPan">