Validations in android/eclipse

android, eclipse, validation

Solution

//ya its avilable

in your string.xml you can add and resource as

<string name="specific_chars">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz _1234567890</string>

and access in your edit text add attribute as

android:digits="@string/specific_chars"

now only the specified characters only edittext will take.

Problem

How to restrict an edittextbox with numbers and special symbols on android/eclipse. ie., i must want to allow only the characters (a-z & A-Z) not the others. Is there any options available to do this through .xml(file)? Thanks in advance!.

Original source

Related problems