{"id":20047703,"url":"https://github.com/bitvale/checkboxswitcher","last_synced_at":"2025-05-05T10:31:24.724Z","repository":{"id":221806908,"uuid":"199142154","full_name":"bitvale/CheckboxSwitcher","owner":"bitvale","description":"Android implementation of checkbox switch animation from Oleg Frolov","archived":false,"fork":false,"pushed_at":"2019-07-27T09:11:01.000Z","size":334,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T21:23:16.974Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitvale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-07-27T09:08:14.000Z","updated_at":"2024-06-22T19:44:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"829971d9-f9b2-4338-bafc-a5da33b51103","html_url":"https://github.com/bitvale/CheckboxSwitcher","commit_stats":null,"previous_names":["bitvale/checkboxswitcher"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitvale%2FCheckboxSwitcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitvale%2FCheckboxSwitcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitvale%2FCheckboxSwitcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitvale%2FCheckboxSwitcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitvale","download_url":"https://codeload.github.com/bitvale/CheckboxSwitcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252480459,"owners_count":21754776,"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-13T11:37:23.646Z","updated_at":"2025-05-05T10:31:24.719Z","avatar_url":"https://github.com/bitvale.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CheckboxSwitcher\n\n\u003cimg src=\"/art/preview.gif\" alt=\"sample\" title=\"sample\" width=\"320\" height=\"600\" align=\"right\"/\u003e\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Platform](https://img.shields.io/badge/platform-android-green.svg)](http://developer.android.com/index.html)\n[![API](https://img.shields.io/badge/API-19%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=19)\n\nCreated this [switch animation](https://dribbble.com/shots/6266357-Checkboxswitcher) from [Oleg Frolov](https://dribbble.com/Volorf) as an android library. \n\nUSAGE\n-----\n\nJust add CheckboxSwitcher view in your layout XML and CheckboxSwitcher library in your project via Gradle:\n\n```gradle\ndependencies {\n  implementation 'com.bitvale:checkboxswitcher:1.0.0'\n}\n```\n\nXML\n-----\n\n```xml\n\u003ccom.bitvale.checkboxswitcher.CheckboxSwitcher\n    android:id=\"@+id/switcher\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    app:switcher_bg_color=\"@color/switcher_color\"\n    app:thumb_off_color=\"@color/off_color\"\n    app:thumb_on_color=\"@color/icon_color\"\n    app:thumb_icon=\"@drawable/thumb_icon\" /\u003e\n```\n\nYou must use the following properties in your XML to change your Switcher.\n\n\n##### Properties:\n\n* `android:checked`                 (boolean)   -\u003e default  false\n* `app:switcher_height`             (dimension) -\u003e default  26dp // width is calculated automatically\n* `app:switcher_bg_color`           (color)     -\u003e default  white\n* `app:thumb_on_color`              (color)     -\u003e default  #95cd75\n* `app:thumb_off_color`             (color)     -\u003e default  #e5e5e5\n* `app:thumb_icon`                  (reference) -\u003e default  check icon\n* `app:elevation`                   (dimension) -\u003e default  4dp\n\nKotlin\n-----\n\n```kotlin\nswitcher.setOnCheckedChangeListener { checked -\u003e\n    if (checked) action()\n}\n```\n\nLICENCE\n-----\n\nCheckboxSwitcher by [Alexander Kolpakov](https://play.google.com/store/apps/dev?id=7044571013168957413) is licensed under an [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitvale%2Fcheckboxswitcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitvale%2Fcheckboxswitcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitvale%2Fcheckboxswitcher/lists"}