public class PhoneNumberTextWatcher
extends java.lang.Object
implements android.text.TextWatcher
Constructor and Description |
---|
PhoneNumberTextWatcher()
The formatting is based on the current system locale and future locale changes
may not take effect on this instance.
|
PhoneNumberTextWatcher(java.lang.String countryCode)
The formatting is based on the given
countryCode . |
Modifier and Type | Method and Description |
---|---|
void |
afterTextChanged(android.text.Editable s) |
void |
beforeTextChanged(java.lang.CharSequence s,
int start,
int count,
int after) |
void |
onTextChanged(java.lang.CharSequence s,
int start,
int before,
int count) |
public PhoneNumberTextWatcher()
public PhoneNumberTextWatcher(java.lang.String countryCode)
countryCode
.countryCode
- the ISO 3166-1 two-letter country code that indicates the country/region
where the phone number is being entered.public void beforeTextChanged(java.lang.CharSequence s, int start, int count, int after)
beforeTextChanged
in interface android.text.TextWatcher
public void onTextChanged(java.lang.CharSequence s, int start, int before, int count)
onTextChanged
in interface android.text.TextWatcher
public void afterTextChanged(android.text.Editable s)
afterTextChanged
in interface android.text.TextWatcher