{"id":21130107,"url":"https://github.com/dlazaro66/WheelIndicatorView","last_synced_at":"2025-07-09T01:32:22.044Z","repository":{"id":32896329,"uuid":"36490910","full_name":"dlazaro66/WheelIndicatorView","owner":"dlazaro66","description":"A 'Google Fit' like activity indicator for Android","archived":false,"fork":false,"pushed_at":"2015-07-23T12:23:55.000Z","size":898,"stargazers_count":396,"open_issues_count":6,"forks_count":64,"subscribers_count":9,"default_branch":"master","last_synced_at":"2023-10-20T19:23:16.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dlazaro66.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-29T08:19:23.000Z","updated_at":"2023-10-05T09:20:52.000Z","dependencies_parsed_at":"2022-09-05T23:11:46.032Z","dependency_job_id":null,"html_url":"https://github.com/dlazaro66/WheelIndicatorView","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlazaro66%2FWheelIndicatorView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlazaro66%2FWheelIndicatorView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlazaro66%2FWheelIndicatorView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlazaro66%2FWheelIndicatorView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dlazaro66","download_url":"https://codeload.github.com/dlazaro66/WheelIndicatorView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476374,"owners_count":17480215,"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-11-20T05:32:17.259Z","updated_at":"2024-11-20T05:32:24.321Z","avatar_url":"https://github.com/dlazaro66.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"WheelIndicatorView [![Build Status](https://travis-ci.org/dlazaro66/WheelIndicatorView.svg?branch=master)](https://travis-ci.org/dlazaro66/WheelIndicatorView) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-WheelIndicatorView-green.svg?style=flat)](https://android-arsenal.com/details/1/1912) [ ![Download](https://api.bintray.com/packages/dlazaro66/maven/WheelIndicatorView/images/download.svg) ](https://bintray.com/dlazaro66/maven/WheelIndicatorView/_latestVersion)\n===\nA 'Google Fit' like activity indicator for Android\n\nScreenshots\n-----------\n\n![Image](../master/art/animated_wheelview.gif?raw=true)\n\nUsage\n-----\n\nHow to use:\n\n- Add a \"WheelIndicatorView\" in the layout editor like you actually do with a button for example\n\n```xml\n \u003ccom.dlazaro66.wheelindicatorview.WheelIndicatorView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:id=\"@+id/wheel_indicator_view\"\n        app:itemsLineWidth=\"13dp\"\n        app:filledPercent=\"40\"\n        app:backgroundColor=\"@color/white\"\n        /\u003e\n```\n- You can set different attributes just as:\n\n    - Lines size: WheelIndicatorView:itemsLineWidth\n    - Inner circle background color: WheelIndicatorView:backgroundColor\n    - % of circle filled: WheelIndicatorView:filledPercent\n\n\n- Also, you can declare it programmatically:\n```\n WheelIndicatorView wheelIndicatorView = new WheelIndicatorView(context);\n```\n\n- Then add elements to the indicator view, declaring as many WheelIndicatorItem objects as you want:\n```\n WheelIndicatorItem bikeActivityIndicatorItem = new WheelIndicatorItem(1.5f , Color.parseColor(\"#FF5722\"));\n```\n- Every ``` WheelIndicatorItem ``` should have a _weight_ and the chart will draw it as needed, comparing all data set.\n\n- If data set changed, you should call ``` wheelIndicatorView.notifyDataSetChanged() ``` as you would do with an adapter.\n\n- Animate the chart once you added all your elements with ``` wheelIndicatorView.startItemsAnimation() ``` \n\n- If you don't want your chart to be completed at 100% (for example if you're representing user fitness activity and daily target is only done at 35%) you should call ``` wheelIndicatorView.setFilledPercent(35) ``` \n\nAdd it to your project\n----------------------\n\n\nAdd WheelIndicatorView dependency to your build.gradle\n\n```groovy\ndependencies{\n    compile 'com.dlazaro66.wheelindicatorview:WheelIndicatorView:1.0.0'\n}\n```\n\nDo you want to contribute?\n--------------------------\n\nPlease send a PR or open an issue with your comments!\n\nDeveloped By\n------------\n\n* David Lázaro Esparcia - \u003cdlazaro66@gmail.com\u003e\n\n\u003ca href=\"https://twitter.com/_dlazaro\"\u003e\n  \u003cimg alt=\"Follow me on Twitter\" src=\"http://imageshack.us/a/img812/3923/smallth.png\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://es.linkedin.com/pub/david-lázaro-esparcia/49/4b3/342\"\u003e\n  \u003cimg alt=\"Add me to Linkedin\" src=\"http://imageshack.us/a/img41/7877/smallld.png\" /\u003e\n\u003c/a\u003e\n\n\nWho's using it\n--------------\n\n*Does your app use WheelIndicatorView? If you want to be featured on this list drop me a line.*\n\nContributors\n------------\n* [David Lázaro Esparcia][1]\n\nLicense\n-------\n\n    Copyright 2015 David Lázaro\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\n[1]: https://github.com/dlazaro66\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlazaro66%2FWheelIndicatorView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlazaro66%2FWheelIndicatorView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlazaro66%2FWheelIndicatorView/lists"}