{"id":18270541,"url":"https://github.com/LarsWerkman/HoloColorPicker","last_synced_at":"2025-04-05T01:30:40.034Z","repository":{"id":6168399,"uuid":"7398151","full_name":"LarsWerkman/HoloColorPicker","owner":"LarsWerkman","description":"An Android Holo themed colorpicker designed by Marie Schweiz","archived":false,"fork":false,"pushed_at":"2019-02-22T01:31:12.000Z","size":660,"stargazers_count":1393,"open_issues_count":30,"forks_count":383,"subscribers_count":84,"default_branch":"master","last_synced_at":"2025-03-30T22:07:04.049Z","etag":null,"topics":[],"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/LarsWerkman.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}},"created_at":"2013-01-01T19:15:04.000Z","updated_at":"2025-03-20T16:43:15.000Z","dependencies_parsed_at":"2022-09-14T19:42:13.623Z","dependency_job_id":null,"html_url":"https://github.com/LarsWerkman/HoloColorPicker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LarsWerkman%2FHoloColorPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LarsWerkman%2FHoloColorPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LarsWerkman%2FHoloColorPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LarsWerkman%2FHoloColorPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LarsWerkman","download_url":"https://codeload.github.com/LarsWerkman/HoloColorPicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276022,"owners_count":20912285,"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":[],"created_at":"2024-11-05T11:38:42.351Z","updated_at":"2025-04-05T01:30:39.644Z","avatar_url":"https://github.com/LarsWerkman.png","language":"Java","readme":"\u003ch1\u003eAndroid Holo ColorPicker\u003c/h1\u003e\n\nMarie Schweiz \u003chttp://marie-schweiz.de/\u003e made a beautifull new design for the Holo ColorPicker which added a lot of new functionality.\n\nYou can now set the Saturation and Value of a color.\nAlso its possible to set the Opacity for a color.\n\nYou can also set the last selected color and see the difference with the new selected color.\n\nDemo can be found on my Google Drive [here](https://docs.google.com/file/d/0BwclyDTlLrdXRzVnTGJvTlRfU2s/edit) if interested. the code of the sample can be found at a gist [here](https://gist.github.com/LarsWerkman/4754528)\n\n![image](https://lh6.googleusercontent.com/-Rn5TDr6QoG4/UQk8OPpsPEI/AAAAAAAAAX0/TKlibuBjupo//framed_HoloColorPicker.png)\n![image](https://lh4.googleusercontent.com/-GtJYDCQdnVo/UVW4ML7WIuI/AAAAAAAAAj4/YKHEUnhvLhA//framed_colorpicker.png)\n\n\u003ch3\u003eUDPATE\u003c/h3\u003e\nNow bars can change their orientation, Thanks to [tonyr59h](https://github.com/tonyr59h)\nalso the gradle build version was updated to 0.7.+\n![image](https://lh5.googleusercontent.com/-3KSukk_S94Y/UvKiNER-OBI/AAAAAAAAA-k/8SPfOmFhLjE//device-2014-02-05-180704_framed.png)\n\n\n\u003ch2\u003eDocumentation\u003c/h2\u003e\n\nTo add the ColorPicker to your layout add this to your xml\n```xml\n\u003ccom.larswerkman.holocolorpicker.ColorPicker\n    android:id=\"@+id/picker\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"/\u003e\n```       \n        \nTo add a Saturation/Value bar to your layout add this to your xml\n```xml\n\u003ccom.larswerkman.holocolorpicker.SVBar\n    android:id=\"@+id/svbar\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"/\u003e\n```       \nThe same goes for the Opacity bar\n```xml\n\u003ccom.larswerkman.holocolorpicker.OpacityBar\n    android:id=\"@+id/opacitybar\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"/\u003e\n```\n\nSaturation bar\n```xml\n\u003ccom.larswerkman.holocolorpicker.SaturationBar\n    android:id=\"@+id/saturationbar\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"/\u003e\n```\n\nand a Value bar\n```xml\n\u003ccom.larswerkman.holocolorpicker.ValueBar\n    android:id=\"@+id/valuebar\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"/\u003e\n```\n\nTo connect the bars with the colorpicker and to get the selected color.\n```java\nColorPicker picker = (ColorPicker) findViewById(R.id.picker);\nSVBar svBar = (SVBar) findViewById(R.id.svbar);\nOpacityBar opacityBar = (OpacityBar) findViewById(R.id.opacitybar);\nSaturationBar saturationBar = (SaturationBar) findViewById(R.id.saturationbar);\nValueBar valueBar = (ValueBar) findViewById(R.id.valuebar);\n\t\npicker.addSVBar(svBar);\npicker.addOpacityBar(opacityBar);\npicker.addSaturationBar(saturationBar);\npicker.addValueBar(valueBar);\n\n//To get the color\npicker.getColor();\n\n//To set the old selected color u can do it like this\npicker.setOldCenterColor(picker.getColor());\n// adds listener to the colorpicker which is implemented\n//in the activity\npicker.setOnColorChangedListener(this);\n\n//to turn of showing the old color\npicker.setShowOldCenterColor(false);\n\n//adding onChangeListeners to bars\nopacitybar.setOnOpacityChangeListener(new OnOpacityChangeListener …)\nvaluebar.setOnValueChangeListener(new OnValueChangeListener …)\nsaturationBar.setOnSaturationChangeListener(new OnSaturationChangeListener …)\n```\t\n\n\u003cH2\u003eDependency\u003c/H2\u003e\nAdding it as a dependency to your project.\n\n\tdependencies {\n    \tcompile 'com.larswerkman:HoloColorPicker:1.5'\n\t}\n\n\u003cH2\u003eLicense\u003c/H2\u003e\n\t\n \t Copyright 2012 Lars Werkman\n \t\n \t Licensed under the Apache License, Version 2.0 (the \"License\");\n \t you may not use this file except in compliance with the License.\n \t You may obtain a copy of the License at\n \t\n \t     http://www.apache.org/licenses/LICENSE-2.0\n \t\n \t Unless required by applicable law or agreed to in writing, software\n\t distributed under the License is distributed on an \"AS IS\" BASIS,\n \t WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n \t See the License for the specific language governing permissions and\n \t limitations under the License.\n \t\n\n\u003ch2\u003eDevoleped By\u003c/h2\u003e\n**Lars Werkman**\n","funding_links":[],"categories":["Libs","etc"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLarsWerkman%2FHoloColorPicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLarsWerkman%2FHoloColorPicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLarsWerkman%2FHoloColorPicker/lists"}