CountryCodePickerProject icon indicating copy to clipboard operation
CountryCodePickerProject copied to clipboard

How to get number length?

Open AlexSuvorov2k opened this issue 6 years ago • 5 comments

I want to set placeholder for numbel like "xxx-xxx-xx-xx", or if choosed different country different placeholder like for example "xx-xx-xxx". How i can get number length? Thank you!

AlexSuvorov2k avatar Nov 14 '19 16:11 AlexSuvorov2k

Wow... This is a use case I never thought of... So far we have example number hint feature: https://github.com/hbb20/CountryCodePickerProject/wiki/Example-phone-number-as-edittext-hint

I will try to add this as a feature soon... 👍

hbb20 avatar Nov 22 '19 00:11 hbb20

Thanks, I'll wait it!

AlexSuvorov2k avatar Nov 22 '19 13:11 AlexSuvorov2k

Did you solved it by any other ways? I wanted to add this hint too

hastagurung avatar May 14 '21 07:05 hastagurung

@devgr24 Now It will be difficult to remember, but maybe this functions will help you: countryCodePicker.getFullNumber() and countryCodePicker.getFormattedFullNumber()

AlexSuvorov2k avatar May 14 '21 09:05 AlexSuvorov2k

thanks for the help.

hastagurung avatar May 17 '21 17:05 hastagurung