Here is my EditText in xml layout:
<EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:maxLength="2" android:maxLines="1"/>
This EditText length limitation (maxLength="2") works just partially.
It looks like user can't enter more than 2 characters because more is not shown, but in practise after pressing character "A" on keyboard 5 times he needs to press "back" (on keyboard) 4 times to delete second character and that makes no sense at all.
Funny enough this works correctly (as expected) with digits.
P.S. Already checked few question related questions like this and this but those solutions are not working
No comments:
Post a Comment