Home

Awesome

colorpicker

Fork of ColorPickerPreference

Improvements:

<table sytle="border: 0px;"> <tr> <td><img width="200px" src="screen1.png" /></td> <td><img width="200px" src="screen2.png" /></td> </tr> </table>

Usage

Add to your build.gradle:

dependencies {
    compile 'com.github.j4velin.colorpicker:colorpicker:+'
}

To show the dialog:

ColorPickerDialog dialog = new ColorPickerDialog(getActivity(), Color.BLACK);
                dialog.setOnColorChangedListener(new ColorPickerDialog.OnColorChangedListener() {
                    @Override
                    public void onColorChanged(int color) {
                        // apply new color
                    }
                });
                dialog.show();