{"id":13848869,"url":"https://github.com/sephiroth74/AndroidWheel","last_synced_at":"2025-07-12T13:32:54.513Z","repository":{"id":2330745,"uuid":"3292288","full_name":"sephiroth74/AndroidWheel","owner":"sephiroth74","description":"Custom wheel widget for android","archived":false,"fork":false,"pushed_at":"2015-08-29T10:12:50.000Z","size":194,"stargazers_count":385,"open_issues_count":6,"forks_count":174,"subscribers_count":40,"default_branch":"master","last_synced_at":"2024-07-01T10:58:45.666Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/sephiroth74.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":"2012-01-28T18:13:48.000Z","updated_at":"2024-01-08T06:25:18.000Z","dependencies_parsed_at":"2022-09-05T14:50:57.701Z","dependency_job_id":null,"html_url":"https://github.com/sephiroth74/AndroidWheel","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/sephiroth74%2FAndroidWheel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2FAndroidWheel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2FAndroidWheel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2FAndroidWheel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sephiroth74","download_url":"https://codeload.github.com/sephiroth74/AndroidWheel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213949843,"owners_count":15661680,"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-08-04T19:01:00.106Z","updated_at":"2024-08-04T19:03:31.579Z","avatar_url":"https://github.com/sephiroth74.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"#\tWheel widget for Android #\n\nTo include the wheel widget in the current layout, you should add in the layout xml this lines:\n\n            \u003cit.sephiroth.android.wheel.view.Wheel\n                android:id=\"@+id/wheel\"\n                xmlns:sephiroth=\"http://schemas.android.com/apk/res-auto\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"match_parent\"\n                sephiroth:numRotations=\"6\"\n                sephiroth:ticks=\"28\" /\u003e\n\t\t\t\t\nWhere **numRotations** is the max number of rotations the wheel can perform and **ticks** is the total number of ticks the wheel will display.\n\nIn your activity you can add a **OnScrollListener** listener to the wheel widget, in this way:\n\n\t\tmWheel = (Wheel) findViewById( R.id.wheel );\n\t\tmWheel.setOnScrollListener( new OnScrollListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onScrollStarted( Wheel view, float value, int roundValue ) {\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onScrollFinished( Wheel view, float value, int roundValue ) {\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onScroll( Wheel view, float value, int roundValue ) {\n\t\t\t}\n\t\t} );\n\t\t\nWhere **float value** is a value between -1.0 and 1.0 of the current indicator position and **int roundValue** is a value between -(ticks*numRotations) and (ticks*numRotations)\n\n\n###Change the Wheel value\nThe wheel position and value chan be changed programmatically at runtime using the Wheel's method **setValue**:\n\n\tpublic void setValue( float value, boolean fireScrollEvent );\n\t\n- value is the new wheel value, a float between -1.0f and 1.0f, where 0.0f it's the center of the wheel.\n- fireScrollEvent: if true, once this method is called the onScrollFinished method will be called.\n\n\n## Screen Shots ##\n\n![Wheel running on ICS](https://github.com/sephiroth74/AndroidWheel/raw/master/Screenshot_2012-01-28-13-33-04.png \"Screenshot 1\")","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsephiroth74%2FAndroidWheel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsephiroth74%2FAndroidWheel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsephiroth74%2FAndroidWheel/lists"}