Home » Android » Android EditText show keyboard with capital letters and number row

Android EditText show keyboard with capital letters and number row

Posted by: admin May 14, 2020 Leave a comment

Questions:

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.

How to&Answers:

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.

Answer:

textCapCharacters|textVisiblePassword is working fine for me.