MaskedEditText icon indicating copy to clipboard operation
MaskedEditText copied to clipboard

Problem with InputType and imeOptions

Open ghost opened this issue 10 years ago • 2 comments

Hi, I having some problem when i set InputType in MaskedEditText. It doesn't work. Also, when MaskedEditText is last EditText, i cannot close keyboard. I try to set imeOptions = actionDone but no success. How could i solve this?

Thanks

ghost avatar Jul 15 '15 00:07 ghost

Hi I don't know why, but developer force-sets the input type to TYPE_TEXT_FLAG_NO_SUGGESTIONS here, during init(); So to solve your problem, you can remove this line from your copy of sources, or set the input type in code, not in XML https://github.com/toshikurauchi/MaskedEditText/blob/master/MaskedEditText/src/br/com/sapereaude/maskedEditText/MaskedEditText.java#L193

metalurgus avatar Jul 16 '15 10:07 metalurgus

I download the source code and make this change and works fine.I also add on setOnEditorActionListener return false when EditorInfo.IME_ACTION_DONE. Thanks @metalurgus

ghost avatar Jul 16 '15 19:07 ghost