Michael Schmid
Michael Schmid

Reputation: 5005

Soft keyboard for numbers that allows entering letters

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.

Upvotes: 2

Views: 2704

Answers (2)

Rahul Tiwari
Rahul Tiwari

Reputation: 6978

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.

Upvotes: 1

Tibox
Tibox

Reputation: 837

There is no such things in Android.

You should take a lokk at the official documentation : InputType

Upvotes: 1

Related Questions