SeslColorPickerDialog

A dialog that shows a SeslColorPicker. It has a title, positive and negative buttons and all the dialog themes are supported. Use SeslColorPickerDialog to create an instance with the initial color. The OnColorSetListener is called only when the positive button is clicked.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context, @Nullable listener: SeslColorPickerDialog.OnColorSetListener, currentColor: Int)
constructor(@NonNull context: Context, @Nullable listener: SeslColorPickerDialog.OnColorSetListener, recentlyUsedColors: Array<Int>)
constructor(@NonNull context: Context, @Nullable onColorSetListener: SeslColorPickerDialog.OnColorSetListener, currentColor: Int, recentlyUsedColors: Array<Int>)

Types

Link copied to clipboard

Functions

Link copied to clipboard
Returns the SeslColorPicker instance used by this dialog.
Link copied to clipboard
open fun onClick(dialog: DialogInterface, whichButton: Int)
Link copied to clipboard
open fun setNewColor(newColor: Integer)
Sets the new color.
Link copied to clipboard
Sets whether the transparency control (opacity bar) is enabled or not.