2

Is there an InputType for (default) Android soft keyboards that is targeted at entering numbers but also allows entering letters?

This would be for an input fields like the house number, that most of the time contains only numbers, but sometimes also letters.

On iOS, there is UIKeyboardTypeNumbersAndPunctuation that displays the normal keyboard, but with the page that contains the numbers; you can then switch back to the letter page.

Michael Schmid
  • 4,601
  • 1
  • 22
  • 22
  • possible duplicate of [How do I default to numeric keyboard on EditText without forcing numeric input?](http://stackoverflow.com/questions/6153796/how-do-i-default-to-numeric-keyboard-on-edittext-without-forcing-numeric-input) – krossovochkin Sep 25 '15 at 13:15
  • possible duplicate of [EditText with number keypad by default, but allowing alphabetic characters](http://stackoverflow.com/questions/3544214/edittext-with-number-keypad-by-default-but-allowing-alphabetic-characters) – Michael Schmid Sep 29 '15 at 18:56

2 Answers2

1

There is no such things in Android.

You should take a lokk at the official documentation : InputType

Tibox
  • 827
  • 6
  • 7
1

InputType TYPE_TEXT_VARIATION_POSTAL_ADDRESS seems closest to what you need.

if you want to start with a numeric keyboard initially and then want to switch to qwerty this answer might help you.

Community
  • 1
  • 1
Rahul Tiwari
  • 6,851
  • 3
  • 49
  • 78