Android soft keyboard hides button

Alexander picture Alexander · Feb 20, 2014 · Viewed 14.1k times · Source

I do have a simple login view like shown below.

If any EditText gains focus, the keyboard will be shown (soft). The red dashed line should outline this behavior:

Keyboard

What I need is, that the Buttons at the bottom (Signup & Help) are invisible while Keyboard is showing. The bottom end of the login button should be over the keyboard, so that both EditTexts and the Login Button are visible.

At best half of the Logo should be visible if possible (depending on screen size)

It would be perfectly fine to define an extra layout xml like "keyboard is visible" if that's possible.

Answer

qwr picture qwr · Feb 20, 2014

1) ScrollView as parent layout so that it can be scrolled by user.

2) using only adjustResize

3) Use software keyboard show/hide event to have more control. You can set visibility of the layout below login button with View.GONE while keyboard is visibe.

extra:

Check Specifying the Input Method Type . Next and Done actions for convenience of user