{"id":28561135,"url":"https://github.com/jiang111/cprogressbutton","last_synced_at":"2025-06-10T10:32:42.366Z","repository":{"id":85167630,"uuid":"83511200","full_name":"jiang111/CProgressButton","owner":"jiang111","description":"a circle progress button like iOS ","archived":false,"fork":false,"pushed_at":"2017-06-21T09:25:51.000Z","size":410,"stargazers_count":386,"open_issues_count":0,"forks_count":53,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-19T22:33:35.938Z","etag":null,"topics":["android","button-widget","download"],"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/jiang111.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-03-01T04:23:29.000Z","updated_at":"2025-02-25T06:03:11.000Z","dependencies_parsed_at":"2023-08-22T21:32:25.762Z","dependency_job_id":null,"html_url":"https://github.com/jiang111/CProgressButton","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiang111%2FCProgressButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiang111%2FCProgressButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiang111%2FCProgressButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiang111%2FCProgressButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiang111","download_url":"https://codeload.github.com/jiang111/CProgressButton/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiang111%2FCProgressButton/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259055935,"owners_count":22798836,"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":["android","button-widget","download"],"created_at":"2025-06-10T10:30:37.733Z","updated_at":"2025-06-10T10:32:42.358Z","avatar_url":"https://github.com/jiang111.png","language":"Java","readme":"# CProgressButton\n\na circle progress button like iOS \u003cbr /\u003e\n[![](https://jitpack.io/v/jiang111/CProgressButton.svg)](https://jitpack.io/#jiang111/CProgressButton) \u003cbr /\u003e\n\n![art](https://raw.githubusercontent.com/jiang111/CProgressButton/master/art/art2.gif)\n\n## Usage:\n\n### Gradle\n```\nAdd it in your root build.gradle at the end of repositories:\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\n\nStep 2. Add the dependency  [![](https://jitpack.io/v/jiang111/CProgressButton.svg)](https://jitpack.io/#jiang111/CProgressButton) \u003cbr /\u003e\n\n\n```\n\tdependencies {\n\t        compile 'com.github.jiang111:CProgressButton:{last-version}'\n\t}\n```\n\n\n### code\n```\n//config in your app\nCProgressButton.initStatusString(new String[]{\"download\",\"pause\",\"complete\",\"error\",\"delete\"});\n //use \nCProgressButton progressButton = (CProgressButton)findViewById(R.id.btn2);\nif(progressButton.getState() != CProgressButton.STATE.NORMAL){\n\tprogressButton.normal(0/1/2/3); //max value is String[].length - 1;  call anytime;\n}else{\n\tprogressButton.startDownload();  //you must call startDownload() before download(progress);\n\tprogressButton.download(progress);\n}\n```\n### xml\n\nlayout\n```\n \u003ccom.jiang.android.pbutton.CProgressButton\n            android:layout_width=\"65dp\"\n            android:layout_marginLeft=\"50dp\"\n            android:gravity=\"center\"\n            app:stroke_width=\"1dp\"  //stroke outside width -\u003e the width in bounder.xml\n            app:radius=\"40dp\"       //outside  radius  -\u003e the radius in bounder.xml\n            app:color=\"@color/colorAccent\"       //all line color the color in bounder.xml\n            app:drawable_xml=\"@drawable/bounder\"  //bg drawable\n            android:textSize=\"12sp\"\n            android:textColor=\"@color/colorAccent\"\n            android:id=\"@+id/btn\"\n            android:layout_height=\"30dp\" /\u003e\n```\ndrawable-\u003e bounder.xml\n```\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cshape xmlns:android=\"http://schemas.android.com/apk/res/android\" android:shape=\"rectangle\"\u003e\n    \u003cstroke android:color=\"@color/colorAccent\" android:width=\"1dp\" /\u003e\n    \u003ccorners android:radius=\"40dp\" /\u003e\n\u003c/shape\u003e\n```\n\n### Other\n If you found this library helpful or you learned something today and want to thank me, [buying me a cup of ☕️  with paypal](https://www.paypal.me/jyuesong) \u003cbr /\u003e\u003cbr /\u003e\n![](https://raw.githubusercontent.com/jiang111/RxJavaApp/master/qrcode/wechat_alipay.png)\n\n\n### License\n\n    Copyright 2016 NewTab\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.\n","funding_links":["https://www.paypal.me/jyuesong"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiang111%2Fcprogressbutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiang111%2Fcprogressbutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiang111%2Fcprogressbutton/lists"}