How do you stop the on-screen keyboard from covering form fields in mobile apps?
Classic problem: a user taps the bottom field of a form, the keyboard slides up, and the field they're typing in is hidden behind it.
It behaves differently on iOS and Android, and differently again in a web view. I've tried scrolling the field into view on focus and adding bottom padding equal to the keyboard height, with mixed results.
What approach has been most reliable for you? Any framework features that handle this well out of the box?
Comments · 3
Most frameworks have a keyboard-avoiding view. Make sure the scroll container resizes, not just shifts, or the bottom field gets stuck.
Also scroll the focused field slightly above centre, so users can see their text and the button below it.
Good tip on scrolling the field above centre. I'll try that.