ColorPickerInspectorView

Inspector component for picking colors.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context, @NonNull label: String, @NonNull @Size(min = 1) colors: Array<Int>, @ColorInt defaultValue: Int, @Nullable listener: ColorPickerInspectorView.ColorPickerListener)
Construct color picker.
constructor(@NonNull context: Context, @NonNull label: String, @NonNull colors: List<Integer>, @ColorInt defaultValue: Int, @Nullable listener: ColorPickerInspectorView.ColorPickerListener)
Construct color picker.
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.

Types

Link copied to clipboard
Interface implemented by the different color picker detail views.
Link copied to clipboard
Listener for color changes.

Functions

Link copied to clipboard
Bind to property inspector controller.
Link copied to clipboard
Returns maximum height that this view with all its detail views will occupy.
Link copied to clipboard
Height of the parent PropertyInspector that this view would like it to have.
Link copied to clipboard
Returns best height of this view when shown in inspector.
Link copied to clipboard
open fun getView(): View
Casts the inspector view to the View class and returns it.
Link copied to clipboard
Flag to determine whether to save the state by calling on the view the saveHierarchyState to save its state and restoreHierarchyState to restore it.
Link copied to clipboard
open fun setColor(@ColorInt color: Int, notifyListeners: Boolean)
Sets value to the color picker.
Link copied to clipboard
Sets the detail view that will be displayed when clicking on this color picker inspector.
Link copied to clipboard
open fun unbindController()
Unbind from property inspector controller.