public class ColorPickerDialog extends Dialog implements ColorPickerView.OnColorChangedListener
Modifier and Type | Class and Description |
---|---|
static interface |
ColorPickerDialog.OnColorChangedListener |
Constructor and Description |
---|
ColorPickerDialog(Context context,
int initialColor) |
Modifier and Type | Method and Description |
---|---|
int |
getColor() |
void |
onClick(View v) |
void |
onColorChanged(int color) |
void |
setAlphaSliderVisible(boolean visible) |
void |
setOnColorChangedListener(ColorPickerDialog.OnColorChangedListener listener)
Set a OnColorChangedListener to get notified when the color
selected by the user has changed.
|
public void onColorChanged(int color)
onColorChanged
in interface ColorPickerView.OnColorChangedListener
public void setAlphaSliderVisible(boolean visible)
public void setOnColorChangedListener(ColorPickerDialog.OnColorChangedListener listener)
listener
- public int getColor()
public void onClick(View v)