public class ColorPickerView extends LinearLayout implements HueView.OnHueChangedListener, AlphaView.OnAlphaChangedListener, SelectView.OnOqaqueColorChangedListener
Modifier and Type | Class and Description |
---|---|
static interface |
ColorPickerView.OnColorChanged |
Constructor and Description |
---|
ColorPickerView(Context context) |
ColorPickerView(Context context,
AttributeSet attrs) |
ColorPickerView(Context context,
AttributeSet attrs,
int defStyleAttr) |
Modifier and Type | Method and Description |
---|---|
void |
onAlphaChanged(int alpha) |
void |
onHueChanged(float hue) |
void |
onOpaqueColorChanged(int color) |
void |
setListener(ColorPickerView.OnColorChanged listener) |
void |
setSelectedColor(int color) |
public ColorPickerView(Context context)
public ColorPickerView(Context context, AttributeSet attrs)
public ColorPickerView(Context context, AttributeSet attrs, int defStyleAttr)
public void onAlphaChanged(int alpha)
onAlphaChanged
in interface AlphaView.OnAlphaChangedListener
public void onHueChanged(float hue)
onHueChanged
in interface HueView.OnHueChangedListener
public void onOpaqueColorChanged(int color)
onOpaqueColorChanged
in interface SelectView.OnOqaqueColorChangedListener
public void setListener(ColorPickerView.OnColorChanged listener)
public void setSelectedColor(int color)