{"id":13396323,"url":"https://github.com/Shinelw/ColorArcProgressBar","last_synced_at":"2025-03-13T22:32:09.513Z","repository":{"id":52283022,"uuid":"47400139","full_name":"Shinelw/ColorArcProgressBar","owner":"Shinelw","description":"This is beautiful color arc progress bar.","archived":false,"fork":false,"pushed_at":"2018-05-05T22:20:12.000Z","size":1164,"stargazers_count":942,"open_issues_count":28,"forks_count":193,"subscribers_count":31,"default_branch":"master","last_synced_at":"2024-07-31T18:17:05.801Z","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/Shinelw.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":"2015-12-04T11:30:32.000Z","updated_at":"2024-07-27T08:49:14.000Z","dependencies_parsed_at":"2022-09-12T11:23:06.238Z","dependency_job_id":null,"html_url":"https://github.com/Shinelw/ColorArcProgressBar","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/Shinelw%2FColorArcProgressBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shinelw%2FColorArcProgressBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shinelw%2FColorArcProgressBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shinelw%2FColorArcProgressBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shinelw","download_url":"https://codeload.github.com/Shinelw/ColorArcProgressBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243494321,"owners_count":20299799,"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-07-30T18:00:44.899Z","updated_at":"2025-03-13T22:32:09.164Z","avatar_url":"https://github.com/Shinelw.png","language":"Java","readme":"# ColorArcProgressBar\n[中文版](https://github.com/Shinelw/ColorArcProgressBar/blob/master/README_CHINESE.md)\n\nThis is a customizable circular progressbar.It can achieve the effect of the QQ health's arc progress with XML. What's more, we can use it by only a few codes to do the beautiful and colorful dashboard to show current data.\n\n## Preview\n ![](https://raw.githubusercontent.com/Shinelw/ColorArcProgressBar/master/Demo.gif)\n \n#Usage\n##1、Add Dependency in gradle\n```\ndependencies {\n    ...\n    compile 'com.github.shinelw.colorarcprogressbar:library:1.0.3'\n}\n```\n##2、XML\n```\n\u003ccom.shinelw.library.ColorArcProgressBar\n        android:layout_width=\"300dp\"\n        android:layout_height=\"300dp\"\n        android:layout_gravity=\"center_horizontal\"\n        android:id=\"@+id/bar1\"\n        app:is_need_content=\"true\"\n        app:front_color1=\"@color/colorAccent\"\n        app:max_value=\"100\"\n        app:back_width=\"10dp\"\n        app:front_width=\"10dp\"\n        app:total_engle=\"360\"\n        app:is_need_unit=\"true\"\n        app:string_unit=\"百分比%\"\n        app:back_color=\"@android:color/darker_gray\"\n        android:layout_marginBottom=\"150dp\"\n        /\u003e\n```\n##3、Code\n```\nprogressbar.setCurrentValues(100);\n```\n\n##4、Customize\n###1）set arc total engle\n```\n app:total_engle=\"270\" \n```\n###2）set color gradient\n```\napp:front_color1=\"#00ff00\"\napp:front_color2=\"#ffff00\"\napp:front_color3=\"#ff0000\"\n```\n###3)set two arc width\n```\napp:back_width=\"2dp\"\napp:front_width=\"10dp\"\n```\n###4)set text（title，content，unit） in arc center\n```\napp:is_need_unit=\"true\"\napp:string_unit=\"步\"\napp:is_need_title=\"true\"\napp:string_title=\"截止当前已走\"\n```\npreview like QQ health：\n\n![](https://raw.githubusercontent.com/Shinelw/ColorArcProgressBar/master/demo_qq.gif)\n\n###5）set dial \n```\n  app:is_need_dial=\"true\"\n```\n\npreview like dashboard：\n\n![](https://raw.githubusercontent.com/Shinelw/ColorArcProgressBar/master/demo_dashboard.gif)\n\n\n\n","funding_links":[],"categories":["Index `(light-weight pages)`","进度条","Index","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShinelw%2FColorArcProgressBar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FShinelw%2FColorArcProgressBar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShinelw%2FColorArcProgressBar/lists"}