Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 31
ColorPickerDialog
de.dlyt.yanndroid.oneui.dialog.ClassicColorPickerDialog
de.dlyt.yanndroid.oneui.dialog.DetailedColorPickerDialog
There are two types of color pickers in this library, a simple one (ClassicColorPickerDialog) and a more advanced one (ClassicColorPickerDialog). Select the one which corresponds to your needs.
ClassicColorPickerDialog
Create a new instance of the dialog.
publicClassicColorPickerDialog(Contextcontext, OnColorSetListenerlistener)
publicClassicColorPickerDialog(Contextcontext, OnColorSetListenerlistener, intcurrentColor)
publicClassicColorPickerDialog(Contextcontext, OnColorSetListenerlistener, int[] recentColors)
publicClassicColorPickerDialog(Contextcontext, OnColorSetListenerlistener, intcurrentColor, int[] recentColors)listener: listener for when color is setcurrentColor: choose the default colorrecentColors: string array for starting recent colors
Returns the current ColorPicker widget instance.
publicSeslColorPickergetColorPicker()Set a new default color and add it to recent colors.
publicvoidsetNewColor(intnewColor)Enable color transparency seekbar.
publicvoidsetTransparencyControlEnabled(booleanenabled)DetailedColorPickerDialog

Create a new instance of the dialog.
publicDetailedColorPickerDialog(Contextcontext, OnColorSetListenerlistener)
publicDetailedColorPickerDialog(Contextcontext, OnColorSetListenerlistener, intcurrentColor)
publicDetailedColorPickerDialog(Contextcontext, OnColorSetListenerlistener, int[] recentColors)
publicDetailedColorPickerDialog(Contextcontext, OnColorSetListeneronColorSetListener, intcurrentColor, int[] recentColors)
publicDetailedColorPickerDialog(Contextcontext, OnColorSetListenerlistener, intcurrentColor, int[] recentColors, booleaninitOpacity)listener: listener for when color is setcurrentColor: choose the default colorrecentColors: string array for starting recent colorsinitOpacity: initializes color transparency seekbar, needed by setTransparencyControlEnabled`() to work
Returns the current ColorPicker widget instance.
publicSeslColorPickergetColorPicker()Disables color swatch and editable values.
publicvoidsetOnlySpectrumMode()Set a new default color and add it to recent colors.
publicvoidsetNewColor(intnewColor)Enable color transparency seekbar.
publicvoidsetTransparencyControlEnabled(booleanenabled)BlackMesa123 - OneUI Design Library - Yanndroid