Skip to content

The mask won't work when set android:textAllCaps as true #85

Closed
@li2

Description

@li2

Firstly thanks for your effort on this great lib.

I encountered a weird issue, the mask is not working and the cursor is always in the first position. see attached image.

Firstly, I thought it was an issue with TextInputEditText, so I reverted my codes to use EditText, the issue is still there, then I clone your sample code and compared line by line by removing different codes in my project.

Finally, I found the issue was caused by android:textAllCaps="true", because it was applied in a style throughout the App, so it's really hard to find it.

        android:digits="1234567890/ "
        android:textAllCaps="true" // Simply add this line in your sample code can replicate this issue.
        android:inputType="number" />

image

Hopefully, this can be mentioned in README. Thanks

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions