FileDocCategorySizeDatePackage
ColorPickerDialog.javaAPI DocAndroid 1.5 API8146Wed May 06 22:41:08 BST 2009com.example.android.apis.graphics

ColorPickerDialog

public class ColorPickerDialog extends android.app.Dialog

Fields Summary
private OnColorChangedListener
mListener
private int
mInitialColor
Constructors Summary
public ColorPickerDialog(android.content.Context context, OnColorChangedListener listener, int initialColor)

        super(context);
        
        mListener = listener;
        mInitialColor = initialColor;
    
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        OnColorChangedListener l = new OnColorChangedListener() {
            public void colorChanged(int color) {
                mListener.colorChanged(color);
                dismiss();
            }
        };

        setContentView(new ColorPickerView(getContext(), l, mInitialColor));
        setTitle("Pick a Color");