android 输入号码自动添加连接符,空格,括号,实现?
e.g:
根据区域国家号码的输入号码格式会自动变化
(021)8787-8787
请问android是怎么实现的?
大概说一下在那里实现的就行 android 号码 格式 格式化
[解决办法]
private PhoneNumberFormattingTextWatcher sNumberFormattingTextWatcher = new PhoneNumberFormattingTextWatcher();
mEditText.addTextChangedListener(sNumberFormattingTextWatcher);