{"id":13640410,"url":"https://github.com/aliab/circular-music-progressbar","last_synced_at":"2026-01-20T18:59:39.499Z","repository":{"id":147343412,"uuid":"64487171","full_name":"aliab/circular-music-progressbar","owner":"aliab","description":"Beautiful Circular Progress Bar with album art for android","archived":false,"fork":false,"pushed_at":"2023-07-10T17:55:44.000Z","size":656,"stargazers_count":895,"open_issues_count":2,"forks_count":110,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-08-03T01:16:45.083Z","etag":null,"topics":["android","customview","imageview","progress-bar","widget"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/aliab.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-07-29T14:32:45.000Z","updated_at":"2024-07-31T13:24:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"da902466-94ee-432c-b1fa-d3f8e6d3f76d","html_url":"https://github.com/aliab/circular-music-progressbar","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliab%2Fcircular-music-progressbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliab%2Fcircular-music-progressbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliab%2Fcircular-music-progressbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliab%2Fcircular-music-progressbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aliab","download_url":"https://codeload.github.com/aliab/circular-music-progressbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223816575,"owners_count":17207882,"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","customview","imageview","progress-bar","widget"],"created_at":"2024-08-02T01:01:10.883Z","updated_at":"2026-01-20T18:59:38.909Z","avatar_url":"https://github.com/aliab.png","language":"Kotlin","funding_links":[],"categories":["进度条"],"sub_categories":[],"readme":"# Android Circular Music ProgressBar\n[![](https://jitpack.io/v/aliab/circular-music-progressbar.svg)](https://jitpack.io/#aliab/circular-music-progressbar)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-circular--music--progressbar-green.svg?style=true)](https://android-arsenal.com/details/1/4000)\n\n![Hero Image](https://raw.githubusercontent.com/aliab/circular-music-progressbar/master/art/splash.jpg)\n\n\n## Description\n\nThis Circular Progress bar is a designed and made for music players that need beautiful music progress bar. [Choosed for best of the day at uplabs.com](https://www.uplabs.com/posts/android-circular-music-progressbar)\n\n## Usage\n\nTo use Circular Music ProgressBar you must add it as a dependency in your Gradle build:\n\nStep 1. Add the JitPack repository to your build file\nAdd it in your root build.gradle at the end of repositories:\n\n```groovy\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url \"https://jitpack.io\" }\n\t}\n}\n```\nStep 2. Add the dependency\n```groovy\ndependencies {\n    implementation 'com.github.aliab:circular-music-progressbar:1.5.0'\n}\n```\n\nThen add the view to your layout:\n\n```xml\n    \u003cinfo.abdolahi.CircularMusicProgressBar\n    \txmlns:app=\"http://schemas.android.com/apk/res-auto\"\n        android:id=\"@+id/album_art\"\n        android:layout_width=\"300dp\"\n        android:layout_height=\"300dp\"\n        android:layout_gravity=\"center\"\n        android:src=\"@drawable/maron5\"\n        app:border_color=\"#00796B\"\n        app:border_width=\"2dp\"\n        app:centercircle_diammterer=\"1\"\n        app:progress_color=\"#80CBC4\"\n        app:progress_startAngle=\"40\"\n\tapp:draw_anticlockwise=\"false\" \n\tapp:enable_touch=\"false\"/\u003e\n```\n## XML attributes\n\n```xml\n    \u003cinfo.abdolahi.CircularMusicProgressBar\n        app:border_color=\"#00796B\"\n        app:border_width=\"2dp\"\n        app:centercircle_diammterer=\"1\"\n        app:progress_color=\"#80CBC4\"\n        app:progress_startAngle=\"40\"\n\tapp:draw_anticlockwise=\"true\" \n\tapp:indeterminate=\"false\"\t\t\t\t    \n\tapp:enable_touch=\"false\"/\u003e\n```\n\n## XML attributes\n\n| Name | Type | Default | Description |\n|:----:|:----:|:-------:|:-----------:|\n|border_color|Color|Color.BLACK| ProgressBar background color |\n|border_width|dimen|2| Thicknes of progress bar |\n|centercircle_diammterer|Float|0.805f| Number between 0 and 1, that change diammeter of album art image|\n|progress_color|Color|Color.BLUE| ProgressBar active state color |\n|progress_startAngle|Float| 0 | Number between 0 and 360 that describe Start angle of progress bar active state |\n|draw_anticlockwise|Boolean| false | If set to true, progress will be Anti-Clockwise |\n|enable_touch|Boolean| false | If set to true, progress will track along the touch |\n|indeterminate|Boolean| false | if set to true, will switch to indeterminate state |\n|indeterminate_angle|Float|0|set the base angle for indeterminate state |\n\n## Public Methods\n\n| Name | Description |\n|:----:|:----:|\n|setValue(float)| Change value of progress with animation|\n|setValueWithNoAnimation(float)| Change value of progress with animation|\n|setBorderProgressColor(Color)| Set progressbar active state color |\n|setBorderColor(Color)| Set progressbar non-active state color |\n|setProgressAnimationState(boolean)| Change state of progress value animation. set it to 'false' if you don't want any animation|\n|setProgressAnimatorInterpolator(TimeInterpolator)| Change interpolator of animation to get more effect on animation|\n|setOnCircularBarChangeListener(OnCircularSeekBarChangeListener listener)|Get an update if user want to seek to position or click on image|\n|setIndeterminate(boolean indeterminate)|switch to indeterminate state|\n|isIndeterminated()|return true if is in indeterminate state|\n|setBaseAngle(float newAngle)|set base angle for indeterminate state|\n\nNote: Because I extended ImageView you can use all ImageView public methods too.\n\nLimitations\n-----------\n* The ScaleType is always CENTER_CROP and you'll get an exception if you try to change it. This is (currently) by design as it's perfectly fine for music album art.\n* Enabling `adjustViewBounds` is not supported as this requires an unsupported ScaleType\n* If you use an image loading library like Picasso or Glide, you need to disable their fade animations to avoid messed up images. For Picasso use the `noFade()` option, for Glide use `dontAnimate()`. If you want to keep the fadeIn animation, you have to fetch the image into a `Target` and apply a custom animation yourself when receiving the `Bitmap`.\n* Using a `TransitionDrawable` with `CircleImageView` doesn't work properly and leads to messed up images.\n\n## Todo\n\n * ~~Animation interpolator setter~~\n * ~~Animation disable/enable method~~\n * ~~Support Anti-Clockwise progress~~\n * ~~Drag to seek listener~~\n * ~~Buffering mode animation~~\n * Change thickness of borderes independently\n * Support shadow/glow\n\n## Changelog\n### 1.5.0\n \n * Add support for indeterminate mode\n * Upgrade to Gradle 8.0.0\n * Migrate to AndroidX\n\n### v1.4.0\n\n * Ability to disable touch\n * Some minor improvements\n \n### v1.3.0\n\n * Support drag to specific position\n * Some measurement bug fix\n\n### v1.2.0\n\n * Support Anti-Clockwise progress\n\n### v1.1.1\n\n * Fix Force Close when add view dynamically\n\n### v1.1.0\n\n * Public method for change `animation interpolator`\n * Public method to disable animation\n\n### v1.0.1\n\n * Remove `AllowBackup` from `manifest` of library\n\n### v1.0.0\n\n * Initial release\n\n## CREDITS\n* Special Thanks to [CircleImageView](https://github.com/hdodenhof/CircleImageView).\n\n## License\n```\n   \nThe MIT License (MIT)\n\nCopyright (c) 2023 Ali Abdolahi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliab%2Fcircular-music-progressbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliab%2Fcircular-music-progressbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliab%2Fcircular-music-progressbar/lists"}