{"id":25396316,"url":"https://github.com/droidchef/materialcheckbox","last_synced_at":"2025-10-30T20:31:48.640Z","repository":{"id":71849310,"uuid":"48329996","full_name":"droidchef/MaterialCheckBox","owner":"droidchef","description":"A simple checkbox view interaction that tweens between tick and a cross.","archived":false,"fork":false,"pushed_at":"2015-12-26T01:17:49.000Z","size":133,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-06T17:01:36.943Z","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/droidchef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-20T17:08:11.000Z","updated_at":"2025-01-09T22:42:12.000Z","dependencies_parsed_at":"2023-03-16T07:46:02.038Z","dependency_job_id":null,"html_url":"https://github.com/droidchef/MaterialCheckBox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/droidchef/MaterialCheckBox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droidchef%2FMaterialCheckBox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droidchef%2FMaterialCheckBox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droidchef%2FMaterialCheckBox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droidchef%2FMaterialCheckBox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/droidchef","download_url":"https://codeload.github.com/droidchef/MaterialCheckBox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droidchef%2FMaterialCheckBox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281877513,"owners_count":26577063,"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","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-02-15T20:59:26.348Z","updated_at":"2025-10-30T20:31:48.289Z","avatar_url":"https://github.com/droidchef.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MaterialCheckBox\n\nA simple checkbox view interaction that tweens between tick and a cross.\n\n# Demo\n![Material Checkbox Demo](https://raw.githubusercontent.com/ishan1604/MaterialCheckBox/master/demo/materialcheckbox-demo.gif)\n\n# Download\n\nAdd this to your Top Level `build.gradle` file\n```\nallprojects {\n    repositories {\n        maven {\n            url 'https://dl.bintray.com/ishan1604/maven/'\n        }\n    }\n}\n```\nAdd this to your app module's `build.gradle` file\n```\ndependencies {\n    compile 'in.ishankhanna.materialcheckboxview:materialcheckboxview:1.0.1'\n}\n```\n\n# Usage\n\nIn your Layout XML add this\n\n```\n    \u003cin.ishankhanna.materialcheckboxview.MaterialCheckBox\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:id=\"@+id/test_checkbox\"\n        app:mcb_radius=\"28dp\"\n        app:mcb_shadowRadius=\"8dp\"\n        app:mcb_checkedStateColor=\"@color/red\"\n        app:mcb_unCheckedStateColor=\"@color/green\"\n        app:mcb_lineColor=\"@color/white\"\n        app:mcb_shadowColor=\"@color/darkerGray\"/\u003e\n\n```\n\n| Property                | Description                                              | Format    | Default   |\n|-------------------------|----------------------------------------------------------|-----------|-----------|\n| mcb_radius              | Radius of the circle.                                    | dimension | 18 dp     |\n| mcb_shadowRadius        | Radius of the shadow.                                    | dimension | 0 dp      |\n| mcb_checkedStateColor   | Color of the circle with tick.                           | color     | #00E676   |\n| mcb_unCheckedStateColor | Color of the circle with cross.                          | color     | #FF373D   |\n| mcb_lineColor           | Color of the lines with which tick and cross are formed. | color     | #FFFFFF   |\n| mcb_shadowColor         | Color of the shadow.                                     | color     | #80000000 |\n\nWithin your activity or fragment you can set a listener like this\n\n```\n    MaterialCheckBox materialCheckBox = (MaterialCheckBox) findViewById(R.id.button);\n    materialCheckBox.setOnCheckedChangeListener(new MaterialCheckBox.OnCheckedChangeListener() {\n        @Override\n        public void onCheckedChanged(boolean isChecked) {\n            // Have fun here :)\n        }\n    });\n    \n```\n\nNote : `onCheckedChanged(boolean isChecked)` Method is called after the animation completes.\n\n# Credits\n\nInspiration from [https://dribbble.com/shots/1983467-Right-And-Wrong](https://dribbble.com/shots/1983467-Right-And-Wrong)\n\n# Developers\n\n* [Ishan Khanna](https://github.com/ishan1604)\n* [Salam Thomas](https://github.com/salamthomas)\n\n# License\n\n```\nCopyright 2015 Ishan Khanna, Salam Thomas\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```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroidchef%2Fmaterialcheckbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdroidchef%2Fmaterialcheckbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroidchef%2Fmaterialcheckbox/lists"}