Search code examples
androidandroid-edittextandroid-inputtype

Android EditText show keyboard with capital letters and number row


I can display a keyboard with capital litters with:

android:inputType="textCapCharacters"

but can I show a number row?

With

    android:inputType="textVisiblePassword"

I can have the desired display when holding shift in the keyboard example

But can I initialize editText to show that?

P.S.: already tried

    android:inputType="textVisiblePassword|textCapCharacters"

but it didn't work.


Solution

  • Have you tried android:textAllCaps="true" combined with android:inputType="textVisiblePassword"?
    Anyway I don't think it would result the same on every device, since it is keyboard specific, whether it has number row or not.