Skip to content

SimpleColorWheelDialog

Eltos edited this page Oct 29, 2021 · 11 revisions

Color wheel

extends CustomViewDialog

API reference Examples

A dialog with a stylish and intuitive HSV color picker.

Usage

For general usage see SimpleDialog.

Additional methods are provided to specify the initial color (color), whether an alpha channel is allowed (alpha), whether to show the hex text input (hideHexInput​) etc. Please refer to the API reference for a comprehensive documentation of these methods.

Receiving results

For general usage see SimpleDialog.

The extras Bundle returned will contain the following additional keys:

@ColorInt int color = extras.getInt(SimpleColorWheelDialog.COLOR);  // The color chosen

Examples

SimpleColorWheelDialog.build()
                      .color(0x80e9a11d)
                      .alpha(true)
                      .show(this, COLOR_DIALOG);
SimpleColorWheelDialog.build()
                      .color(0xFFCF4747)
                      .alpha(false)
                      .hideHexInput(true)
                      .show(this, COLOR_DIALOG);