Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set error message to field if number is not valid #31

Open
nisarkhalid opened this issue Nov 27, 2017 · 1 comment
Open

how to set error message to field if number is not valid #31

nisarkhalid opened this issue Nov 27, 2017 · 1 comment

Comments

@nisarkhalid
Copy link

if number id not valid then how to set error message
my previous field was showing error as
phoneNumber.setError(getString(R.string.error_invalid_phone));

@WajidAli007
Copy link

enclose this IntlPhoneInput view in TextInputLayout. And then use the error showing mechanism of the TextInputLayout. I have used it and it is working quite well. If you face any problem ping back. Happy coding :) @nisarkhalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants