I would like to know how to remove the top space/margin of a soft-keyboard.
For clearer picture, checkout the following screenshots:
With space and without space:
I would like to know how to remove the top space/margin of a soft-keyboard.
For clearer picture, checkout the following screenshots:
With space and without space:
Whatever your
inputType
is, add|textNoSuggestions
to the end of it.The "spacing" you're seeing is the autocomplete suggestion area. If you have an input type set to something as simple as
text
then you're going to get suggestions from the keyboard. AddingtextNoSuggestions
to yourinputType
field will remove the suggestions area.So for example:
Or if you were already using something like
textCapWords
you can combine them like so:Also, not sure if you are using it but just a heads up, you'll want to use
inputType="password"
for your password field.