I want to set this format phone no 223-233-3334 for edit text when user typing in keyboard .i know i have to use dialerkeylistener and textfilter .can anybody give sample how to use dialerkeylistener to set format in android
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For non-NANP (http://www.howtocallabroad.com/nanp.html) countries to implement phone number formatting while user typing, you can use some workaround like this:
Otherwise solution can be :
OnCreate :
If you like to format the number after user has entered the phone number:
OnCreate :