My android app has an EditText field for email where user can give input.
But I'm trying to limit the options for that EditText so the user can just enter the allowed characters as email address. So this is my code
<EditText
android:id="@+id/sign_up_password_edit_text"
style="@style/SignUpEditTextStyle"
android:hint="@string/password"
android:inputType="textPassword"
android:digits="abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789 !#$%&'*+-/=?^_`{|}~ (),:;@[\]<>"
/>
but when trying to compile and run the project I'm getting this error:
Error:Execution failed for task ':app:mergeDebugResources'.
Error: The value of attribute "android:digits" associated with an element type "EditText" must not contain the '<' character
How can I fix that and include the '<' character?