{"id":15040912,"url":"https://github.com/jaredrummler/colorpicker","last_synced_at":"2026-01-11T17:41:47.628Z","repository":{"id":12815301,"uuid":"60122366","full_name":"jaredrummler/ColorPicker","owner":"jaredrummler","description":"A highly customizable color picker for Android","archived":false,"fork":false,"pushed_at":"2024-07-29T20:09:51.000Z","size":3319,"stargazers_count":809,"open_issues_count":39,"forks_count":174,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-05-15T04:06:55.038Z","etag":null,"topics":["android","android-library","color-picker","colorpicker","dialog","preference"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaredrummler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-31T20:48:41.000Z","updated_at":"2025-04-26T00:23:15.000Z","dependencies_parsed_at":"2024-09-25T01:31:23.998Z","dependency_job_id":"29c64a77-95f1-4e08-a4e4-067f795f9667","html_url":"https://github.com/jaredrummler/ColorPicker","commit_stats":null,"previous_names":["jrummyapps/color-picker-dialog","jrummyapps/colorpicker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2FColorPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2FColorPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2FColorPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2FColorPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredrummler","download_url":"https://codeload.github.com/jaredrummler/ColorPicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254270646,"owners_count":22042859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-library","color-picker","colorpicker","dialog","preference"],"created_at":"2024-09-24T20:45:16.659Z","updated_at":"2026-01-11T17:41:47.584Z","avatar_url":"https://github.com/jaredrummler.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Color Picker\n\n\u003cimg src=\"https://github.com/jaredrummler/ColorPicker/blob/master/demo/src/main/res/mipmap-xxxhdpi/ic_launcher.png?raw=true\" align=\"left\" hspace=\"10\" vspace=\"10\"\u003e\u003c/a\u003e\n\n\u003ca target=\"_blank\" href=\"https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#ICE_CREAM_SANDWICH\"\u003e\u003cimg src=\"https://img.shields.io/badge/API-14%2B-blue.svg?style=flat\" alt=\"API\" /\u003e\u003c/a\u003e\n\u003ca target=\"_blank\" href=\"LICENSE\"\u003e\u003cimg src=\"http://img.shields.io/:license-apache-blue.svg\" alt=\"License\" /\u003e\u003c/a\u003e\n\u003ca target=\"_blank\" href=\"https://maven-badges.herokuapp.com/maven-central/com.jaredrummler/colorpicker\"\u003e\u003cimg src=\"https://maven-badges.herokuapp.com/maven-central/com.jaredrummler/colorpicker/badge.svg\" alt=\"Maven Central\" /\u003e\u003c/a\u003e\n\u003ca target=\"_blank\" href=\"http://www.methodscount.com/?lib=com.jaredrummler%3Acolorpicker%3A1.1.0\"\u003e\u003cimg src=\"https://img.shields.io/badge/methods-409-e91e63.svg\" /\u003e\u003c/a\u003e\n\u003ca target=\"_blank\" href=\"https://twitter.com/jaredrummler\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/jaredrummler.svg?style=social\" /\u003e\u003c/a\u003e\n\nYet another open source color picker for Android. So, why should you use this color picker? It is highly customizable and easy to use. You can simply add the `ColorPreference` to your preferences and a beautiful color picker dialog will be displayed without additional code. The color picker supports alpha and allows you to set your own presets.\n\nThe original ColorPickerView was written by [Daniel Nilsson](https://github.com/danielnilsson9/color-picker-view).\n\n## Screenshots\n![GIF](art/demo.gif)\n\u0026nbsp;\u0026nbsp;\n\u003cimg src=\"art/screenshot3.png\" width=\"300\" alt=\"Screenshot\"\u003e\n\n## Usage\n\nAdd the `ColorPreference` to your preference XML:\n\n```xml\n\u003cPreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\"\n                  xmlns:app=\"http://schemas.android.com/apk/res-auto\"\u003e\n\n  \u003cPreferenceCategory\u003e\n\n    \u003ccom.jaredrummler.android.colorpicker.ColorPreference\n        android:defaultValue=\"@color/color_default\"\n        android:key=\"default_color\"\n        android:summary=\"@string/color_default_summary\"\n        android:title=\"@string/color_default_title\"/\u003e\n\n    ...\n\n  \u003c/PreferenceCategory\u003e\n\n\u003c/PreferenceScreen\u003e\n```\n\nNote: Using AndroidX's `PreferenceFragmentCompat`? Then use `com.jaredrummler.android.colorpicker.ColorPreferenceCompat`\n\nYou can add attributes to customize the `ColorPreference`:\n\n| name                | type      | documentation                                                                         |\n|---------------------|-----------|---------------------------------------------------------------------------------------|\n| cpv_dialogType      | enum      | \"custom\" to show the color picker, \"preset\" to show pre-defined colors                |\n| cpv_showAlphaSlider | boolean   | Show a slider for changing the alpha of a color (adding transparency)                 |\n| cpv_colorShape      | enum      | \"square\" or \"circle\" for the shape of the color preview                               |\n| cpv_colorPresets    | reference | An int-array of pre-defined colors to show in the dialog                              |\n| cpv_dialogTitle     | reference | The string resource id for the dialog title. By default the title is \"Select a Color\" |\n| cpv_showColorShades | boolean   | true to show different shades of the selected color                                   |\n| cpv_allowPresets    | boolean   | true to add a button to toggle to the custom color picker                             |\n| cpv_allowCustom     | boolean   | true to add a button to toggle to the presets color picker                            |\n| cpv_showDialog      | boolean   | true to let the ColorPreference handle showing the dialog                             |\n\nYou can also show a `ColorPickerDialog` without using the `ColorPreference`:\n\n```java\nColorPickerDialog.newBuilder().setColor(color).show(activity);\n```\n\nAll the attributes above can also be applied to the `ColorPickerDialog`. The activity that shows the dialog *must* \nimplement `ColorPickerDialogListener` to get a callback when a color is selected.\n\nFor further doumentation about how to use the library, check the [demo](demo) app included in this project.\n\n## Download\n\nDownload [the latest AAR](https://repo1.maven.org/maven2/com/jaredrummler/colorpicker/1.1.0/colorpicker-1.1.0.aar) or grab via Gradle:\n\n```groovy\nimplementation 'com.jaredrummler:colorpicker:1.1.0'\n```\n\n## License\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredrummler%2Fcolorpicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredrummler%2Fcolorpicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredrummler%2Fcolorpicker/lists"}