Skip to content
Java
Branch: master
Clone or download
Pull request Compare This branch is 43 commits ahead, 12 commits behind attenzione:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src/main
.gitignore
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
screen1.png
screen2.png

README.md

colorpicker

Fork of ColorPickerPreference

Improvements:

  • extract colors from photo
  • copy/paste
  • no dialog title

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();
You can’t perform that action at this time.