项目作者: dononcharles

项目描述 :
How to format Phone Number using Android Input Type
高级语言: Java
项目地址: git://github.com/dononcharles/Android-PhoneNumberFormattingText.git
创建时间: 2016-09-25T23:27:18Z
项目社区:https://github.com/dononcharles/Android-PhoneNumberFormattingText

开源协议:Apache License 2.0

下载


Android-PhoneNumberFormattingText

How to format Phone Number using Android Input Type

How to use PhoneNumberFormattingText custom class that extend the native one PhoneNumberFormattingTextWatcher.

After creating PhoneNumberFormattingText.java under your package, go into your Activity or Fragment and do this below:

  1. EditText ET = (EditText) findViewById(R.id.phoneInput);
  2. ET.addTextChangedListener(new PhoneNumberFormattingTextWatcher(ET));

Thanks for contributions