Android Color Picker Save

Color picker for Android

Project README

Color Picker for Android

Easy to use, fully functional color picker with compact design based on HSV color model. Project consists two main classes which can be easily extended and suited to user requirements.

  • - basic color picker which allows user to pick a single color

Screenshot 1 Screenshot 2 Screenshot 3

  • - color picker implementation which allows user to pick multiple colors with adjacent hue value

Screenshot 1 Screenshot 2 Screenshot 3


Color Picker has been implemented as an extension of a View class. This gives a possibility to use it as any other Android component. Following are the most basic usage examples.

In activity

Color Picker can be put in layout xml file just like any other component.

    android:layout_height="wrap_content" />

Example can be found in file.

In dialog

Using Color Picker in dialog requires extending AlertDialog class. Listener interface OnColorSelectedListener is required to return selected color value back to the caller.

    ColorPickerDialog colorPickerDialog = new ColorPickerDialog(this, initialColor, new OnColorSelectedListener() {

        public void onColorSelected(int color) {
            // do action


See for working sample.

In preference

Color Picker can be used also on Preferece Screen. Usage is the same as for any other preferences. You can provide default, initial color value by setting android:defaultValue attribute. Value selected in dialog will be stored under the key provided with android:key attribute.

    android:summary="@string/pref_summary" />

Provided demo implementation extends DialogPreference. See


Code is licensed under the Apache License, Version 2.0.

Open Source Agenda is not affiliated with "Android Color Picker" Project. README Source: chiralcode/Android-Color-Picker
Open Issues
Last Commit
10 years ago

Open Source Agenda Badge

Open Source Agenda Rating