Christopher Perry Christopher Perry - 3 months ago 14
Android Question

Android: How do I prevent the soft keyboard from pushing my view up?

I have a vertical sliding drawer at the bottom of my app. When the soft keyboard opens, it pushes the tab for the drawer up, so it sits atop the keyboard. I actually want it to remain at the bottom of the screen, becoming hidden when the keyboard is shown.

Anyone else run into this issue? Know how to fix it?


You can simply switch your activity's windowSoftInputMode flag to "adjustPan". Check the official documentation for more info.