Tima
Tima

Reputation: 12925

InputType of EditText in Android

I want to use default keyboard for, but want also that it occurs with numeric input type.

Does anybody know how to do that?

Maybe there is a way to press '?123'-key programmatically?

I've took a look to list of inputTypes, but none of them seems to be the proper one for my need.

Thank you

Upvotes: 0

Views: 2052

Answers (2)

Paresh Mayani
Paresh Mayani

Reputation: 128448

You can use either of these 3:

enter image description here

For example: android:inputType="numberDecimal"

Upvotes: 2

Anju
Anju

Reputation: 9479

set in ur code inputType = "number"

Upvotes: 0

Related Questions