Android color picker to be included in the activity
Your class should implement ColorPickerDialog.OnColorChangedListener public class MainActivity implements ColorPickerDialog.OnColorChangedListener { private Paint mPaint; mPaint = new Paint(); // on button click new ColorPickerDialog(this, this, mPaint.getColor()).show(); } ColorPicker Dialog public class ColorPickerDialog extends Dialog { public interface OnColorChangedListener { void colorChanged(int color); } private OnColorChangedListener mListener; private int mInitialColor; private static class ColorPickerView extends View … Read more