Skip to content

SimpleColorWheelDialog

Philipp Niedermayer edited this page Jun 12, 2021 · 11 revisions

Color wheel

extends CustomViewDialog, Full API reference

A dialog with a stylish and intuitive HSV color picker

Building dialogs

Example

SimpleColorWheelDialog.build()
                      .color(0xFFCF4747)
                      .alpha(true)
                      .show(Activity.this, COLOR_PICKER);

Available customizations

  • Initial color
    .color(int color)
    When defined, a second color pad showing the old color will be shown and the wheel will be initialised to this color.
  • Transparency
    alpha(boolean enabled)
    Whether to allow for transparent colors. When enabled, a slider for the alpha value will be displayed.

Receiving results

See Receiving results from SimpleDialog. The extras Bundle returned will contain the following keys:

@ColorInt int SimpleColorWheelDialog.COLOR    // The color chosen

Clone this wiki locally