当前位置: 代码迷 >> Android >> android 输入号码自动添加连接符,空格,括号,实现?该怎么处理
  详细解决方案

android 输入号码自动添加连接符,空格,括号,实现?该怎么处理

热度:26   发布时间:2016-04-28 07:19:53.0
android 输入号码自动添加连接符,空格,括号,实现?
e.g:
根据区域国家号码的输入号码格式会自动变化
(021)8787-8787

请问android是怎么实现的?

大概说一下在那里实现的就行
android 号码 格式 格式化

------解决方案--------------------
private PhoneNumberFormattingTextWatcher sNumberFormattingTextWatcher = new PhoneNumberFormattingTextWatcher();

mEditText.addTextChangedListener(sNumberFormattingTextWatcher);


就是这个PhoneNumberFormattingTextWatcher类
  相关解决方案