Adjacent Files

Project Info

. > colorpickerdialog > src > main > java > me > jfenn > colorpickerdialog > views > ColorPickerView.java

setColor

Type: public void

Set the picker’s color. Changes to values will not be animated.

Parameter Name Description
color The picker’s color.

setColor

Type: public void

Set the picker’s color.

Parameter Name Description
color The picker’s color.
animate Whether to animate changes in values.

getColor

Type: @ColorInt public abstract int

Get the current color value.

Returned Value: The current color value.

setAlphaEnabled

Type: public void

Set whether the color’s alpha value can be changed.

Parameter Name Description
isAlpha Whether the color’s alpha value can be changed.

isAlphaEnabled

Type: public boolean

Determine whether the color’s alpha value can be modified.

Returned Value: Whether the color’s alpha value can be modified.

setColorAlpha

Type: public void

Set the color’s alpha, from 0-255. Change in values will not be animated.

Parameter Name Description
alpha The color’s alpha, from 0-255.

setColorAlpha

Type: public void

Set the color’s alpha, between 0-1 (inclusive).

Parameter Name Description
alpha The color’s alpha, between 0-1 (inclusive).
animate Whether to animate the change in values.

getColorAlpha

Type: public int

Gets the color’s alpha, from 0-255.

Returned Value: The color’s alpha, from 0-255.

setListener

Type: public void

Set an interface to receive updates to color values. This may be called multiple times in succession if a slider is dragged or animated; be wary of performance.

Parameter Name Description
listener An interface to receive color updates.