InputType for EditText in Android

I would like: - the numeric keypad should be displayed first - but it should be possible to change the text keyboard and type a few letters.

I asked almost the same question and accepted the answer. InputType for EditText in Android

But now I found some strange behavior by setting InputType to Number : you can change the keyboard to a text type, but it is impossible to type text.

Any ideas why this is happening?

Does anyone know how to use TYPE_MASK_CLASS as input type?

thank

+3
source share
2 answers

, , .
TYPE_MASK_CLASS EditorInfo .

0

Android: inputType = "textPersonName | | numberSigned | numberDecimal"

Android: inputType = " | textCapCharacters | textCapWords | textCapSentences | textAutoCorrect | textAutoComplete | textMultiLine | textImeMultiLine | textPersonName"

0

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


All Articles