Type of android keyboard, text and number

4

How can I make the android keyboard have two types, in case I wanted numbers and letters. I tried using android:inputType , but it did not work. Is there a way to resolve this?

Thank you.

RESOLVED

Looking further into the problem, I realized that the problem was not in the type of keyboard, but in the input mask, everything that was typed, in the mask class he called the setText () doing with the keyboard back to the default, then instead of setText () , I used the following:

ediText.getText().clear();
ediText.append(mascara.toUpperCase());

Thank you all.

    
asked by anonymous 23.11.2015 / 13:55

1 answer

3

Try the following:

android:inputType="textCapCharacters"

According to the documentation:

  

Can be combined with text and its variations to request   capitalization of all characters.

Follow the documentation link

Greetings

    
23.11.2015 / 14:10