Forum General
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

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.

Posts

  • AlvaroPereiraAlvaroPereira BRMember

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

Sign In or Register to comment.