How to display the full Android keyboard (text + numeric)?

Asked

Viewed 46 times

1

I implemented a mask component for a text field in my App (https://github.com/VicMikhailau/MaskedEditText/issues).

It works very well, but I came across a problem that in Edittext normal does not happen.

I need in this case to be typed the vehicle plate information whose current format is AAA9999 (will change with the new Mercosur plate), but the problem I’m having will also apply in the new format.

The keyboard is displayed normally, but when I switch to "Numeric" mode and a number is typed, it automatically reverts to "Alpha". This is bad, because if I need to enter 4 numbers, I need to trigger the "Numeric" to each new number.

This effect does not occur in standard Edittext.

How do I keep the "Numeric" triggered via code or when opening the keyboard, fix the "Numeric"?

  • 1

    It has happened to me put in html, and as far as I could analyze it depends on the keyboard of the phone, in some happened and in others not, so apparently there is no way to solve.

  • If there’s no way, I’ll have to let you use the component. It helps me a lot, because I abstract the validation and removal of special characters and space in the field.

  • I can not evaluate, because there is not enough information and code.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.