Color Picker Inspector View
constructor(@NonNull context: Context, @NonNull label: String, @NonNull @Size(min = 1 ) colors: Array<Int>, @ColorInt defaultValue: Int, @Nullable listener: ColorPickerInspectorView.ColorPickerListener)
constructor(@NonNull context: Context, @NonNull label: String, @NonNull colors: List<Integer>, @ColorInt defaultValue: Int, @Nullable listener: ColorPickerInspectorView.ColorPickerListener)
Construct color picker.
Parameters
context
The context to use.
label
Label displayed before slider view.
colors
Available drawing colors.
default Value
Default displayed color.
listener
Listener for color picker changes.
constructor(@NonNull context: Context, @NonNull label: String, @NonNull colors: List<Integer>, @ColorInt defaultValue: Int, @Nullable colorPickerDetailView: ColorPickerInspectorView.ColorPickerDetailView, @Nullable listener: ColorPickerInspectorView.ColorPickerListener)
Construct color picker.
Parameters
context
The context to use.
label
Label displayed before slider view.
colors
Available drawing colors.
default Value
Default displayed color.
color Picker Detail View
The detail view to use, or null
to use the default detail view.
listener
Listener for color picker changes.