{"id":13645430,"url":"https://github.com/andyxialm/SmoothCheckBox","last_synced_at":"2025-04-21T14:30:54.915Z","repository":{"id":41262794,"uuid":"50325206","full_name":"andyxialm/SmoothCheckBox","owner":"andyxialm","description":":dango: A custom CheckBox with animation for Android.","archived":false,"fork":false,"pushed_at":"2018-06-01T09:00:16.000Z","size":496,"stargazers_count":1615,"open_issues_count":25,"forks_count":300,"subscribers_count":47,"default_branch":"master","last_synced_at":"2025-04-14T19:59:22.851Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andyxialm.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}},"created_at":"2016-01-25T04:06:14.000Z","updated_at":"2025-03-22T12:46:21.000Z","dependencies_parsed_at":"2022-09-10T07:41:18.308Z","dependency_job_id":null,"html_url":"https://github.com/andyxialm/SmoothCheckBox","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/andyxialm%2FSmoothCheckBox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyxialm%2FSmoothCheckBox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyxialm%2FSmoothCheckBox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyxialm%2FSmoothCheckBox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyxialm","download_url":"https://codeload.github.com/andyxialm/SmoothCheckBox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250070173,"owners_count":21369839,"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-08-02T01:02:34.995Z","updated_at":"2025-04-21T14:30:54.426Z","avatar_url":"https://github.com/andyxialm.png","language":"Java","funding_links":[],"categories":["其他","Java"],"sub_categories":[],"readme":"#SmoothCheckBox\n\n### ScreenShot 截图:\n\n![](https://github.com/andyxialm/SmoothCheckBox/blob/master/art/smoothcb.gif?raw=true)\n\n### Attrs 属性\n|attr|format|description|\n|---|:---|:---:|\n|duration|integer|动画持续时间|\n|stroke_width|dimension|未选中时边框宽度|\n|color_tick|color|对勾颜色|\n|color_checked|color|选中时填充颜色|\n|color_unchecked|color|未选中时填充颜色|\n|color_unchecked_stroke|color|未选中时边框颜色|\n\n\n## Sample Usage 使用\n\n\n```java\n \n    setChecked(boolean checked);                   // 默认不带动画，若需要动画 调用重载方法\n    setChecked(boolean checked, boolean animate);  // 参数: animate 是否显示动画\n```\n\n\n```java\n\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_sample);\n\n        final SmoothCheckBox scb = (SmoothCheckBox) findViewById(R.id.scb);\n        scb.setOnCheckedChangeListener(new SmoothCheckBox.OnCheckedChangeListener() {\n            @Override\n            public void onCheckedChanged(SmoothCheckBox checkBox, boolean isChecked) {\n                Log.d(\"SmoothCheckBox\", String.valueOf(isChecked));\n            }\n        });\n    }    \n```\n\n## About me\n\nAn android developer in Beijing.\n\nWelcome to [offer me](mailto:andyxialm@gmail.com). :smiley:\n\n## License\n\n    Copyright 2015, 2016 andy\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.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyxialm%2FSmoothCheckBox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyxialm%2FSmoothCheckBox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyxialm%2FSmoothCheckBox/lists"}