Jonathan Roth
Jonathan Roth

Reputation: 1271

EditText validation - no numbers

I´m looking for an android:inputType for an EditText to make sure the user can´t enter any number, but all different kinds of lettres.
I thought, the inputType is the right xml-attribute I have to change, but I can´t find a suitable value. Does anybody have a solution? Does android:digits help?

Thanks in advance, Jonathan

Upvotes: 1

Views: 1066

Answers (1)

Cheryl Simon
Cheryl Simon

Reputation: 46844

You can use an InputFilter to restrict the input in a way that isn't available in inputType. I think android:digits is the opposite of what you want.

Upvotes: 3

Related Questions