There is a name EditText in my screen. I want to accept only alphabets means from a-z,A-Z and should not accept numbers, special chars.
EditText
I\'am using
You will need to subclass EditText and detect key events. Reject any character other than a-zA-Z This is the only way to limit the acceptable characters.
A person's name could contain a number so textPersonName is working correctly.