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:
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.
Here pass HIDE_IMPLICIT_ONLY at the position of showFlag and 0 at the position of hiddenFlag . It will forcefully close soft Keyboard.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With