{"id":16150996,"url":"https://github.com/harjot-oberai/croller","last_synced_at":"2025-05-16T13:05:19.012Z","repository":{"id":69334843,"uuid":"64561944","full_name":"harjot-oberai/Croller","owner":"harjot-oberai","description":"A circular seekbar for Android, with a control knob! (for the lack of a better word).","archived":false,"fork":false,"pushed_at":"2020-06-13T10:18:01.000Z","size":3890,"stargazers_count":1230,"open_issues_count":21,"forks_count":165,"subscribers_count":32,"default_branch":"master","last_synced_at":"2024-10-11T00:54:12.152Z","etag":null,"topics":["andorid","circular","custom-view","seekbar"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harjot-oberai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-30T20:01:56.000Z","updated_at":"2024-10-10T09:09:45.000Z","dependencies_parsed_at":"2023-03-01T13:17:02.944Z","dependency_job_id":null,"html_url":"https://github.com/harjot-oberai/Croller","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harjot-oberai%2FCroller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harjot-oberai%2FCroller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harjot-oberai%2FCroller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harjot-oberai%2FCroller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harjot-oberai","download_url":"https://codeload.github.com/harjot-oberai/Croller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254535827,"owners_count":22087399,"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":["andorid","circular","custom-view","seekbar"],"created_at":"2024-10-10T00:54:08.039Z","updated_at":"2025-05-16T13:05:18.960Z","avatar_url":"https://github.com/harjot-oberai.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src = \"/screens/croller_cover.png\"\u003e\u003cbr\u003e\n[![Platform](https://img.shields.io/badge/platform-Android-yellow.svg)](https://www.android.com)\n[![API](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=16)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n# Usage\nJust add the following dependency in your app's `build.gradle`\n```groovy\ndependencies {\n      compile 'com.sdsmdg.harjot:croller:1.0.7'\n}\n```\n\n### XML\n```xml\n\u003ccom.sdsmdg.harjot.crollerTest.Croller\n        android:id=\"@+id/croller\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_centerInParent=\"true\"\n        app:back_circle_color=\"#EDEDED\"\n        app:indicator_color=\"#0B3C49\"\n        app:indicator_width=\"10\"\n        app:is_continuous=\"true\"\n        app:label_color=\"#000000\"\n        app:main_circle_color=\"#FFFFFF\"\n        app:max=\"1000\"\n        app:progress_primary_color=\"#0B3C49\"\n        app:progress_secondary_color=\"#EEEEEE\"\n        app:start_offset=\"45\" /\u003e\n```\n\n### Java\n```java\nCroller croller = (Croller) findViewById(R.id.croller);\n        croller.setIndicatorWidth(10);\n        croller.setBackCircleColor(Color.parseColor(\"#EDEDED\"));\n        croller.setMainCircleColor(Color.WHITE);\n        croller.setMax(50);\n        croller.setStartOffset(45);\n        croller.setIsContinuous(false);\n        croller.setLabelColor(Color.BLACK);\n        croller.setProgressPrimaryColor(Color.parseColor(\"#0B3C49\"));\n        croller.setIndicatorColor(Color.parseColor(\"#0B3C49\"));\n        croller.setProgressSecondaryColor(Color.parseColor(\"#EEEEEE\"));\n```\n### Listeners\n\n#### Progress Change Listener (if you only want to use the progress)\n```java\nCroller croller = (Croller) findViewById(R.id.croller);\n        croller.setOnProgressChangedListener(new Croller.onProgressChangedListener() {\n            @Override\n            public void onProgressChanged(int progress) {\n                // use the progress\n            }\n        });\n```\n\n#### Croller Change Listener (if want start and stop tracking as well, similar to seekbar)\n```java\nCroller croller.setOnCrollerChangeListener(new OnCrollerChangeListener() {\n            @Override\n            public void onProgressChanged(Croller croller, int progress) {\n            \t// use the progress\n            }\n\n            @Override\n            public void onStartTrackingTouch(Croller croller) {\n                // tracking started\n            }\n\n            @Override\n            public void onStopTrackingTouch(Croller croller) {\n            \t// tracking stopped\n            }\n        });\n```\n\n# Attributes\n\n\u003cimg src = \"/screens/croller_attributes.png\"\u003e\u003cbr\u003e\n\nXML Attribute | Java set method | Functionality\n------------ | ------------- | ------------- \nanticlockwise | setAntiClockwise(boolean anticlockwise) | Set the direction of rotation\nprogress | setProgress(int progress) | Set the current progress of the seekbar\nlabel | setLabel(String str) | Set the label\nlabel_size | setLabelSize(int size) | Set the label size\nlabel_color | setLabelColor(int color) | Set the label color\nis_continuous | setIsContinuous(boolean bool) | Set whether seekbar is conitnuous or discrete\nmax | setMax(int max) | Set the maximum value of the seekbar\nmin | setMin(int min) | Set the minimum value of the seekbar (Default is **1**)\nstart_offset | setStartOffset(int offset) | Set the seekbar start offset angle from bottom horizontal center\nsweep_angle | setSweepAngle(int angle) | Set the total angle covered by the seekbar\nprogress_primary_stroke_width | setProgressPrimaryStrokeWidth(float width) | Set the primary progress thickness for continuous type\nprogress_secondary_stroke_width | setProgressSecondaryStrokeWidth(float width) | Set the secondary progress thickness for continuous type\nprogress_primary_circle_size | setProgressPrimaryCircleSize(float size) | Set the primary progress circle size for discrete type\nprogress_secondary_circle_size | setProgressSecondaryCircleSize(float size) | Set the secondary progress circle size for discrete type\nindicator_width  | setIndicatorWidth(float width) | Set the progress indicator width\nindicator_color | setIndicatorColor(int color) | Set the progress indicator color\nprogress_primary_color | setProgressPrimaryColor(int color) | Set the progress primary(active) color\nprogress_secondary_color | setProgressSecondaryColor(int color) | Set the progress secondary(inactive) color\nprogress_radius | setProgressRadius(float radius) | Set the radius of the progress arc\nmain_circle_radius | setMainCircleRadius(float radius) | Set the main(front) circle radius\nback_circle_radius | setBackCircleRadius(float radius) | Set the back circle radius\nmain_circle_color | setMainCircleColor(int color) | Set the main(front) circle color\nback_circle_color | setBackCircleColor(int color) | Set the back circle color\n\n# Examples\n\u003cimg src = \"/screens/croller_example.png\"\u003e\n\n### ```is_continuous = false```\n\u003cp align=\"center\"\u003e\n\t\u003cimg src = \"/gifs/croller_1.gif\" height=\"300\"\u003e\n\u003c/p\u003e\n\n### ```is_continuous = true```\n\u003cp align=\"center\"\u003e\n\t\u003cimg src = \"/gifs/croller_2.gif\" height=\"300\"\u003e\n\u003c/p\u003e\n\n# License\n\u003cb\u003eCroller\u003c/b\u003e is licensed under `MIT license`. View [license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharjot-oberai%2Fcroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharjot-oberai%2Fcroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharjot-oberai%2Fcroller/lists"}