VicMikhailau / MaskedEditText

It allows you to add a mask to EditText

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Credit Card Mask Problem ("#### #### #### ####")

yura-f opened this issue · comments

If set mask:
private MaskedFormatter formatter = new MaskedFormatter("#### #### #### ####");

Is it not work.
Why?)

commented

Hello, Z-13.
Strange behavior.
Bug with replacing Editable data in MaskedWatcher.
Please use custom MaskedEditText if it is possible.

I found the possible problem with the credit card.

Android: inputType can not be set to NUMBER and has a mask containing characters that are not numbers, for example "### - ###" or "###. ###"

When inputType defines as NUMBER, the mask should only have "#", if it has "-" or "." Use numberSigned or numberDecimal.

commented

Hello, cafecanudo.
Thanks for your comment!