I want to prevent a user from entering a comma "," in a EditText
, investigate what can be done with the property of android:digits=””
but you have to enter the remaining characters, there will be a property to block that property in the XML ?.
Thanks.
This is my EditText
:
<xxxx_android_v1.com.xxxx.sap.xxxx.xxxx_v1.Utility.DTWCustomEditText
android:id="@+id/textViewDescGuardar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="8"
android:maxLines="1"
android:maxLength="50"
android:digits="@string/caracteres"
android:inputType="textPersonName" />