InputType for EditText in Android

I want to use the default keyboard, but I also want it to meet a numeric input type.

Does anyone know how to do this?

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

I looked at the list of input types , but none of them are suitable for my needs.

thank

0
source share
2 answers

You can use any of these 3:

enter image description here

For instance: android:inputType="numberDecimal"

+2
source

set to ur code  inputType = "number"

0
source

Source: https://habr.com/ru/post/1780858/


All Articles