Cannot delete contents in editText with backSpace?

Viewed 743

There is an editText with textWatcher applied. As you see in the below Gif, I cannot delete the numbers from end of the EditText, but first. When locale is english everything works fine, but not in arabic language.

enter image description here

   <EditText
        android:id="@+id/destination"
        android:inputType="number"
        android:maxLength="19"
        android:digits="0123456789-"
        android:hint="@string/to"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:textSize="16sp"
        android:imeOptions="actionDone"
 />
1 Answers

Isn't arabic read from right to left? So left is actually the end.

Ok, try adding android:inputType="number"

Related