There are several fields to enter. In one of the fields you need to enter data only in English.
Is it possible to do something like that for this field, the input language itself has changed to English?
There are several fields to enter. In one of the fields you need to enter data only in English.
Is it possible to do something like that for this field, the input language itself has changed to English?
It is possible to do this as follows: it is possible to limit the input for a user to a set of specific characters, done using the digits property in xml `ke.
Example:
<EditText android:id="@+id/nameText" android:layout_width="177dp" android:layout_height="wrap_content" android:inputType="text" android:digits="abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ" />
in the same place, by the way, there is an idea to use TextWatcher , with the help of which to erase non-English characters in EdtiText
Source: https://ru.stackoverflow.com/questions/199910/
All Articles