A binding library for https://github.com/RedMadRobot/input-mask-android
Add NuGet package to your Xamarin.Android project
PM> Install-Package Xamarin.Bindings.Input-Mask-Android
Add to your view code behind file:
var editText = FindViewById<EditText>(Resource.Id.edit_text);
var listener = MaskedTextChangedListener.Companion.InstallOn(editText,
"+7 ([000]) [000]-[00]-[00]",
new ValueListener((maskFilled, extractedValue, formattedValue) =>
{
LogValueListener(maskFilled, extractedValue, formattedValue);
}));
Please visit the original library description and wiki page for details of usage and possible issues.
Build and deploy InputMask.Sample project to your android device/emulator.
- Vadim Sedov - Binding library & sample port - SIDOVSKY
- RedMadRobot - Input Mask Android java library - RedMadRobot
See the NOTICE file for details.
This project is licensed under the MIT License. See the LICENSE file for details.