In my application I have to validate the EditText. It should only allow character, digits, underscores, and hyphens.
EditText
Here is my code:
edit
please try adding the android:digits="abcde.....012345789" attribute? although the android:digits specify that it is a numeric field it does work for me to set it to accept letters as well, and special characters as well (tested on SDK-7)