Karamunting.Android.DuanHong169.ColorPicker 1.1.1

ColorPicker

A ColorPicker for Android. Pick a color using color wheel and slider (HSV & alpha)

Install-Package Karamunting.Android.DuanHong169.ColorPicker -Version 1.1.1
dotnet add package Karamunting.Android.DuanHong169.ColorPicker --version 1.1.1
paket add Karamunting.Android.DuanHong169.ColorPicker --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Usage

new ColorPickerPopup.Builder(this)
    .InitialColor(_colorPickerView.GetColor())
    .EnableAlpha(true)
    .OkTitle("Choose")
    .CancelTitle("Cancel")
    .ShowIndicator(true)
    .ShowValue(true)
    .Build()
    .Show(
        parent: v,
        observer: new ColorPickerPopup.ColorPickerObserver(
            actionOnColor: (color, fromUser) =>
            {
                v.SetBackgroundColor(color.ToColor());
                _colorPickerView.SetInitialColor(color);
            },
            actionOnColorPicked: color =>
            {

            }
        )
    );

Usage

new ColorPickerPopup.Builder(this)
    .InitialColor(_colorPickerView.GetColor())
    .EnableAlpha(true)
    .OkTitle("Choose")
    .CancelTitle("Cancel")
    .ShowIndicator(true)
    .ShowValue(true)
    .Build()
    .Show(
        parent: v,
        observer: new ColorPickerPopup.ColorPickerObserver(
            actionOnColor: (color, fromUser) =>
            {
                v.SetBackgroundColor(color.ToColor());
                _colorPickerView.SetInitialColor(color);
            },
            actionOnColorPicked: color =>
            {

            }
        )
    );

Version History

Version Downloads Last updated
1.1.1 177 8/2/2018