Android - error with EditText with digits parameter

I am currently experiencing a strange error with an EditText with a parameter android:digits. Here is the XML EditText:

<EditText
  android:id="@+id/edittext"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:gravity="center_vertical"
  android:hint="@string/some_text"
  android:imeOptions="actionDone"
  android:singleLine="true"
  android:digits="abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ\\ "
  android:maxLength="140"
  android:textSize="@dimen/font_size_small"/>

As you can see, this EditText allows the user to enter only alphanumeric characters.

Now, if I try to use this EditText, the EditText correctly filters the characters that I print but ... if I type several characters and then follows %, the previously entered characters are copied to EditText!

For example: I type on the keyboard hello%%, the result in EditText will be hellohellohello.

Have any of you already experienced this error? Is it from the Android platform? Should I report this or have I already been?

For information, my device is a Nexus 4 with Android 4.3.

Thanks!

+4
1

Android- (AOSP). SwiftKey . , .

- , Android Keyboard / , . , , , android:inputType="textNoSuggestions"

+5

All Articles