Forum General

Format Phone Number - Android

TG01TG01 USMember

I'm trying to figure out the best way to format input of an EditText view, as a standard phone number, ie (212) 555-1212. Ideally, I should detect a lost focus event, read the inputted data, and format it if necessary, and update the view. I'm having a hard time finding documentation for focus events. If I use TextChanged, I find my self in a loop, as it catches every keystroke.


  • AlvaroPereiraAlvaroPereira BRMember

    On Xamarin Forms you can use the Completed event. It Works like lostfocus.

Sign In or Register to comment.