SIDOVSKY / input-mask-android-xamarin-binding

Xamarin Android binding library for https://github.com/RedMadRobot/input-mask-android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Input Mask Android Xamarin Binding

A binding library for https://github.com/RedMadRobot/input-mask-android

PLATFORM API

Available on NuGet: NuGet

Preview

PREVIEW

Installing

Add NuGet package to your Xamarin.Android project

PM> Install-Package Xamarin.Bindings.Input-Mask-Android

Usage

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.

Try this library in action!

Build and deploy InputMask.Sample project to your android device/emulator.

Copyright

  • Vadim Sedov - Binding library & sample port - SIDOVSKY
  • RedMadRobot - Input Mask Android java library - RedMadRobot

See the NOTICE file for details.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Xamarin Android binding library for https://github.com/RedMadRobot/input-mask-android

License:MIT License


Languages

Language:C# 100.0%