{"id":23156353,"url":"https://github.com/sparrow007/circularprogressbar","last_synced_at":"2025-08-17T23:32:29.226Z","repository":{"id":56580665,"uuid":"98056746","full_name":"sparrow007/CircularProgressbar","owner":"sparrow007","description":"CircularProgressbar project let you create circular progressbar in android","archived":false,"fork":false,"pushed_at":"2021-01-26T08:48:58.000Z","size":102,"stargazers_count":211,"open_issues_count":6,"forks_count":47,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T15:46:04.644Z","etag":null,"topics":["circleprogressbar","custom-view","ui-components"],"latest_commit_sha":null,"homepage":null,"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/sparrow007.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":"2017-07-22T20:40:06.000Z","updated_at":"2024-04-26T00:04:59.000Z","dependencies_parsed_at":"2022-08-15T21:20:42.968Z","dependency_job_id":null,"html_url":"https://github.com/sparrow007/CircularProgressbar","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sparrow007/CircularProgressbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparrow007%2FCircularProgressbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparrow007%2FCircularProgressbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparrow007%2FCircularProgressbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparrow007%2FCircularProgressbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sparrow007","download_url":"https://codeload.github.com/sparrow007/CircularProgressbar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparrow007%2FCircularProgressbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270922510,"owners_count":24668567,"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-08-17T02:00:09.016Z","response_time":129,"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":["circleprogressbar","custom-view","ui-components"],"created_at":"2024-12-17T21:13:23.548Z","updated_at":"2025-08-17T23:32:28.940Z","avatar_url":"https://github.com/sparrow007.png","language":"Java","readme":"# CircularProgressbar in Android\n\n![circularprogressbar](https://user-images.githubusercontent.com/22986571/29291388-0aa337e0-8161-11e7-945c-1394dc9bcc1c.jpg)\n\nCircularProgressbar project let create circular progressbar in android in simplest way.\n\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-13%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=13)\n\nUSAGE\n-----\nTo make a circular Progressbar add CircularProgressbar in your layout XML and add CircularProgressbar library in your project or you can also grab it through Gradle:\n\nGradle\n------\n```\ndependencies {\n    ...\n    implementation 'com.jackandphantom.android:circularprogressbar:1.2.0'\n}\n```\nNOTE\n------\nFor CircularImageview, here is library created by me :- https://github.com/sparrow007/CircularImageview\n\nXML\n-----\n\n```xml\n\u003c!-- \u003ca\u003e circular progressbar xml\u003c/a\u003e --\u003e\n\u003ccom.jackandphantom.circularprogressbar.CircleProgressbar\n    android:layout_width=\"250dp\"\n    android:layout_height=\"250dp\"\n    app:cpb_progress=\"50\"\n    app:cpb_roundedCorner=\"true\"\n    app:cpb_foregroundProgressWidth=\"15\"\n    app:cpb_foregroundProgressColor=\"#1864c2\"\n    app:cpb_touchEnabled=\"true\"/\u003e\n```\nYou may use the following properties in your XML to change your CircularProgressbar.\n\n#####Properties:\n\nTo add touchEvent into your ciruclar Progressbar you have to add property app:cpb_touchEnabled=\"true\"\n\n/*  circular progressbar xml */\n*   app:cpb_roundedCorner            (boolean)  -\u003e  default false\n*   app:cpb_foregroundProgressWidth  (Integer)  -\u003e  default 10\n*   app:cpb_backgroundProgressWidth  (Integer)  -\u003e  default 10\n*   app:cpb_backgroundProgressColor  (Color)    -\u003e  default Color.GRAY\n*   app:cpb_foregroundProgressColor  (Color)    -\u003e  default Color.BLACK\n*   app:cpb_progress                 (Float)    -\u003e  default 0\n*   app:cpb_touchEnabled             (boolean)  -\u003e  default false\n*   app:cpb_clockwise                (boolean)  -\u003e  default false\n\nJAVA\n-----\n\n```java\nCircleProgressbar circleProgressbar = (CircleProgressbar)findViewById(R.id.yourCircularProgressbar);\ncircleProgressbar.setForegroundProgressColor(Color.RED);\ncircleProgressbar.setBackgroundColor(Color.GREEN);\ncircleProgressbar.setBackgroundProgressWidth(15);\ncircleProgressbar.setForegroundProgressWidth(20);\ncircleProgressbar.enabledTouch(true);\ncircleProgressbar.setRoundedCorner(true);\ncircleProgressbar.setClockwise(true);\nint animationDuration = 2500; // 2500ms = 2,5s\ncircleProgressbar.setProgressWithAnimation(65, animationDuration); // Default duration = 1500ms\n```\n* There is progress listener interface you can implement as par your requierments and there are also getter for all the above methods.\n\n## How to contribute?\n\n1. Fork the repository \n2. Do the desired changes (add/delete/modify)\n3. Make a pull request\n\n## When to contribute?\n\n1. Fix open bugs.\n2. Add new issue.\n\n\nLICENCE\n-----\n\n Copyright 2017 Ankit kumar\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\n Thanks to stackoverflow and Raggav\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparrow007%2Fcircularprogressbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparrow007%2Fcircularprogressbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparrow007%2Fcircularprogressbar/lists"}