{"id":13396307,"url":"https://github.com/mrwonderman/android-square-progressbar","last_synced_at":"2026-03-13T01:32:27.925Z","repository":{"id":8317497,"uuid":"9866398","full_name":"mrwonderman/android-square-progressbar","owner":"mrwonderman","description":"An android library to display a progressbar that goes around an image.","archived":false,"fork":false,"pushed_at":"2018-03-30T13:56:48.000Z","size":3943,"stargazers_count":1279,"open_issues_count":18,"forks_count":283,"subscribers_count":65,"default_branch":"master","last_synced_at":"2025-12-20T08:23:06.895Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://halcyon.ch/android-square-progressbar-v-1-6-0/","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/mrwonderman.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":"2013-05-05T09:21:01.000Z","updated_at":"2025-12-17T21:21:23.000Z","dependencies_parsed_at":"2022-08-03T18:15:11.990Z","dependency_job_id":null,"html_url":"https://github.com/mrwonderman/android-square-progressbar","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mrwonderman/android-square-progressbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrwonderman%2Fandroid-square-progressbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrwonderman%2Fandroid-square-progressbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrwonderman%2Fandroid-square-progressbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrwonderman%2Fandroid-square-progressbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrwonderman","download_url":"https://codeload.github.com/mrwonderman/android-square-progressbar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrwonderman%2Fandroid-square-progressbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30453625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T21:31:01.033Z","status":"ssl_error","status_checked_at":"2026-03-12T21:30:43.161Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-07-30T18:00:44.425Z","updated_at":"2026-03-13T01:32:27.899Z","avatar_url":"https://github.com/mrwonderman.png","language":"Java","readme":"android-square-progressbar[ ![Download](https://api.bintray.com/packages/mrwonderman/maven/squareprogressbar/images/download.svg) ](https://bintray.com/mrwonderman/maven/squareprogressbar/_latestVersion)\n==========================\n![square image](https://vqbaiq-bn1306.files.1drv.com/y3mWYs9BuIe9N1T99aNPJ3OS0HEFXgJHCn96voCjTc0gUiysA7qbzPyLm0-2UiMdIkddCPIEX4uAXH7SHYa_pS8dm8M-S1Q0mkS_0wNhi3QPMb-A9d7-SzD_LIfdA5qyJdFX-9FrfjskYkkPf3jRUqg6MBmQnMRfOfaqY5i4bb6AZw?)\n## First things first\n\nThis library is setup to work with the Android Studio and Gradle. If you're using the Eclipse environment then check out the legacy repository here: [android-square-progressbar-legacy](https://github.com/mrwonderman/android-square-progressbar-legacy).\n\nYou can find my blog post about the newest version here: [halcyon.ch - android-square-progressbar v.1.6.0](http://www.halcyon.ch/android-square-progressbar-v-1-6-0/), also check out the post about the previous major 1.5.0 version [here](http://www.halcyon.ch/android-square-progressbar-v-1-5-0/).\n\nThe example application is available at the play store:\n\n\u003ca href=\"https://play.google.com/store/apps/details?id=ch.halcyon.squareprogressbar.example\"\u003e\n  \u003cimg alt=\"Get it on Google Play\"\n       src=\"https://developer.android.com/images/brand/en_generic_rgb_wo_60.png\" /\u003e\n\u003c/a\u003e\n\n[![Join the chat at https://gitter.im/mrwonderman/android-square-progressbar](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mrwonderman/android-square-progressbar?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n## General idea\nSometimes you don't have enough space in your layout to display a wide progressbar. So this library gives you a complete new possibility to display a progress. You can simply show a progressbar around an image. And this progressbar can be configured in a lot of different ways, like colour, outline, display of the percentage and so on.\n\n### Examples\nHere are some examples of how these progressbars could look like:\n\n| normal / default       | rounded corners           | show percent  | indeterminate|\n| ------------- | ------------- | ----- | ----- |\n|![](https://whxvpq.bn1303.livefilestore.com/y4mbpv6GEOuDrqEaDIkV_bo7t49qpQcERn5YXsEHf9owXaomI--3m5Zx0E5go4ZZIhpz32hnPNne4J7N55qK4sNbCaBY71aVgJ7aaXJYR6pZU-P5iFhLHukKQYgfJKJZacUNUvBcehqVWrnZzQza2V287yPOvxKbflYn3pt4NOFmiQ3ktvT0Z0i_EYWvofzyWwM8xhYPrxeEvNXYANpUmbu3Q?width=200\u0026height=128\u0026cropmode=none)| ![](https://v3xvpq.bn1303.livefilestore.com/y4m4_lOK4OqKikGze8eqQSvlGsSmkKY96VaJWSVnmnkB-QE_oXIYiO4g1GsvojMJa6Cps6CzwocZpuBmCrKkdZiG7HfZ5xOJWZT94NJY8-2uZUmGI9Vehjmd3daTEFeN3rFVF8loYR0MZS5NfcdYH3pTKs2NXtmJq5jftOYVcHLFTnxvPKbsGW1V1gB_yqI7BNDqCYSpQmQOt-dOkcR1SnSrQ?width=200\u0026height=128\u0026cropmode=none)| ![](https://wnxvpq.bn1303.livefilestore.com/y4mY2mdqL2fEDeHd6-qmZVC2P8CXIFETcT_1nXw8ZCTLCJjoNwjFW6_ToAruJ22d_jto0P4LuHL0DIa152e9rJ0Q_SXqmJrqq9oghuYSBwEPEQIWDBHBahX2i0tH5NgW3bE--WKnzq5gtIFuje4_9Fzu4dtyCE9ni7Nnf4UO10pC3WrftTfjWkGFsl0Irp4cARQ1f-I6ET1FinisByPKodMCg?width=200\u0026height=128\u0026cropmode=none)| ![](https://wxxvpq.bn1303.livefilestore.com/y4mbhN1r2hpo6TSZYGMMvTrlDz2Xua214WHLAVkJJwEYGhpeMZ4JzPUrZnnbn3wBUSNSIzw6BP5Z2pvYbtTkK3Sm-pesy-C4pOiSO4EQvbLtG8bhGVUej7CcgIw10p6XGiAw4r5nWQApzuZZ4xkcVWLI0ku4pJijdu2eE74i5rKmyXI5Uei_e_dvW4rsaYjZs8zqc5QoScOTDQhSN2dXbly6g?width=200\u0026height=128\u0026cropmode=none)\n |        | `setRoundedCorners(true)`          | `showProgress(true)` |  `drawOutline(true)`    |     \n|        |           | `setOpacity(true)` |  `setIndeterminate(true)`    |\n\nThere are some further examples available here (with code) : [Examples](https://github.com/mrwonderman/android-square-progressbar/wiki/Examples)\n### How to use it? / How to install? / How to contribute?\nCheck the wiki for more information about [how to use](https://github.com/mrwonderman/android-square-progressbar/wiki/Usage), [how to install](https://github.com/mrwonderman/android-square-progressbar/wiki/Use-with-an-Eclipse-Setup) or [how to contribute](https://github.com/mrwonderman/android-square-progressbar/wiki/How-To-Contribute).\n\nIf you have questions about the code or if you need some help, you can try the [Gitter-Group](https://gitter.im/mrwonderman/android-square-progressbar).\n\n## Usage\n### Gradle\nThis library now works with gradle and will soon be available on the central maven repository. For the moment its on jCenter at [Bintray](https://bintray.com/mrwonderman/maven/squareprogressbar/view). Just add the following repository to your root build.gradle:\n\n    allprojects {\n        repositories {\n            jcenter()\n            maven { url \"https://jcenter.bintray.com\" }\n        }\n    }\n\nThen in your app build.gradle:\n\n    dependencies {\n        // other repos ...\n        implementation 'ch.halcyon:squareprogressbar:1.6.4'\n    }\n\n### Code\nAfter adding the gradle depedency from above you can go to your xml layout and add the following code for a squareprogressbar:\n\n    \u003cch.halcyon.squareprogressbar.SquareProgressBar\n        android:id=\"@+id/sprogressbar\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_alignParentTop=\"true\"\n        android:layout_centerHorizontal=\"true\"\n        android:paddingTop=\"20dp\" \u003e\n    \u003c/ch.halcyon.squareprogressbar.SquareProgressBar\u003e\n\nTo set some basic settings use the following java-code:\n\n    SquareProgressBar squareProgressBar = findViewById(R.id.sprogressbar);\n    squareProgressBar.setImage(R.drawable.example);\n    squareProgressBar.setProgress(50.0);\n\nNow you can make the squareprogressbar as fancy as you like. Check the [usage page](https://github.com/mrwonderman/android-square-progressbar/wiki/Usage) for all the different possiblities.\n","funding_links":[],"categories":["Index `(light-weight pages)`","Index","Java","图片","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrwonderman%2Fandroid-square-progressbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrwonderman%2Fandroid-square-progressbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrwonderman%2Fandroid-square-progressbar/lists"}