Karamunting.Android.Twinkle942910.MonthYearPicker 0.0.1

Fancy year and month picker library for Xamarin.Android

Install-Package Karamunting.Android.Twinkle942910.MonthYearPicker -Version 0.0.1
dotnet add package Karamunting.Android.Twinkle942910.MonthYearPicker --version 0.0.1
<PackageReference Include="Karamunting.Android.Twinkle942910.MonthYearPicker" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Karamunting.Android.Twinkle942910.MonthYearPicker --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Usage

var yearMonth = FindViewById<TextView>(R.Id.yearMonth);

var dialog = new YearMonthPickerDialog(
    context: this,
    date: new DateTime(year: 2010, month: 1, day: 1),
    onDateSetAction: (int year, int month) =>
    {
        Toast.Make(this, $"Year = {year}, Month = {month}", ToastLength.Short).Show();
    }
);
dialog.SetMinYear(2000);
dialog.SetMaxYear(2020);
dialog.Show();

Usage

var yearMonth = FindViewById<TextView>(R.Id.yearMonth);

var dialog = new YearMonthPickerDialog(
    context: this,
    date: new DateTime(year: 2010, month: 1, day: 1),
    onDateSetAction: (int year, int month) =>
    {
        Toast.Make(this, $"Year = {year}, Month = {month}", ToastLength.Short).Show();
    }
);
dialog.SetMinYear(2000);
dialog.SetMaxYear(2020);
dialog.Show();

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.0.1 1,286 5/19/2018