{"id":16482119,"url":"https://github.com/bod/android-wear-color-picker","last_synced_at":"2025-10-28T13:18:50.372Z","repository":{"id":28714797,"uuid":"32235650","full_name":"BoD/android-wear-color-picker","owner":"BoD","description":"A color picker activity optimized for Wear OS (aka Android Wear).  Handy for watch face settings.","archived":false,"fork":false,"pushed_at":"2023-05-21T14:23:24.000Z","size":27551,"stargazers_count":62,"open_issues_count":1,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-21T22:03:40.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/BoD.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2015-03-14T22:45:23.000Z","updated_at":"2025-05-20T18:44:50.000Z","dependencies_parsed_at":"2025-06-21T22:03:42.705Z","dependency_job_id":null,"html_url":"https://github.com/BoD/android-wear-color-picker","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/BoD/android-wear-color-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoD%2Fandroid-wear-color-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoD%2Fandroid-wear-color-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoD%2Fandroid-wear-color-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoD%2Fandroid-wear-color-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BoD","download_url":"https://codeload.github.com/BoD/android-wear-color-picker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoD%2Fandroid-wear-color-picker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261200384,"owners_count":23123946,"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-10-11T13:09:41.689Z","updated_at":"2025-10-28T13:18:50.260Z","avatar_url":"https://github.com/BoD.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Android%20Wear%20Color%20Picker-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/1662)\n\n# Wear OS Color Picker\n\nA color picker activity optimized for Wear OS (formerly known as Android Wear).  Handy for watch face settings.\n\nThe UI presents a wheel of colors with different hues and lightness.\n\n![Demo](https://github.com/BoD/android-wear-color-picker/raw/master/etc/demo_opt.gif \"Demo\")\n\n\n## How to use\n\n### Adding the library to your project\n\nThe artifact is available on Maven Central.\n\n```kotlin\ndependencies {\n    implementation(\"org.jraf:android-wear-color-picker:3.0.0\")\n}\n```\n\n*Note: the artifact was hosted on JCenter in the past, but is now on Maven Central since v2.2.4*\n\n### Use the library\n\nThe picker uses the [ActivityResultContract](https://developer.android.com/reference/androidx/activity/result/contract/ActivityResultContract) API to be launched and to return the picked color:\n\n```kotlin\n// 1. Setup the pick launcher\nval colorPickLauncher = registerForActivityResult(ColorPickActivity.Contract()) { pickedColorResult -\u003e\n    if (pickedColorResult == null) {\n        // The user closed the picker without picking anything\n    } else {\n        // Get the picked color. The result is an Int in the form 0xAARRGGBB.\n        pickedColor = pickedColorResult.pickedColor\n    }\n}\n\n// ...\n\n// 2. Launch the picker. The picked color parameter is optional - if specified, the picker will start already positioned on that color.\ncolorPickLauncher.launch(ColorPickActivity.Contract.PickRequest(pickedColor))\n```\n\nYou can also have a look at the [sample](sample/).\n\nThat's it!\n\n## License\n\n```\nCopyright (C) 2015-present Benoit 'BoD' Lubek (BoD@JRAF.org)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbod%2Fandroid-wear-color-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbod%2Fandroid-wear-color-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbod%2Fandroid-wear-color-picker/lists"}