{"id":13537889,"url":"https://github.com/anupcowkur/Android-Wheel-Menu","last_synced_at":"2025-04-02T04:32:01.413Z","repository":{"id":6926733,"uuid":"8177857","full_name":"anupcowkur/Android-Wheel-Menu","owner":"anupcowkur","description":"Simple and easy to use circular menu widget for Android. ","archived":true,"fork":false,"pushed_at":"2020-12-15T11:11:23.000Z","size":435,"stargazers_count":418,"open_issues_count":1,"forks_count":163,"subscribers_count":47,"default_branch":"master","last_synced_at":"2024-11-03T03:30:16.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"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/anupcowkur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-13T11:16:34.000Z","updated_at":"2024-05-10T08:57:18.000Z","dependencies_parsed_at":"2022-09-13T11:22:27.910Z","dependency_job_id":null,"html_url":"https://github.com/anupcowkur/Android-Wheel-Menu","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/anupcowkur%2FAndroid-Wheel-Menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anupcowkur%2FAndroid-Wheel-Menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anupcowkur%2FAndroid-Wheel-Menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anupcowkur%2FAndroid-Wheel-Menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anupcowkur","download_url":"https://codeload.github.com/anupcowkur/Android-Wheel-Menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246757525,"owners_count":20828914,"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-01T09:01:04.627Z","updated_at":"2025-04-02T04:31:57.170Z","avatar_url":"https://github.com/anupcowkur.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"# Deprecated\nThis project is no longer maintained. No new issues or pull requests will be accepted. You can still use the source or fork the project to suit your needs.\n\n# Android Wheel Menu\n\n![Example Image](https://raw.github.com/anupcowkur/Android-Wheel-Menu/master/graphics/wheel.gif)\n\n# Usage\n\nFirst [download the jar](https://github.com/anupcowkur/Android-Wheel-Menu/releases/download/v1.0/wheel-menu-library.jar) and add it to your project. The exact instructions to include the jar will depend on your specific development environment, IDE etc. You can also add [wheel-menu-library](https://github.com/anupcowkur/Android-Wheel-Menu/tree/master/wheel-menu-library) as a [library project](https://developer.android.com/tools/projects/index.html#LibraryProjects) and reference it directly without adding the jar.\n\n\nInclude wheel menu in your layout:\n\n```xml\n\u003ccom.anupcowkur.wheelmenu.WheelMenu\nandroid:id=\"@+id/wheelMenu\"\nandroid:layout_width=\"300dp\"\nandroid:layout_height=\"300dp\" /\u003e\n```\n\nInitialize the wheel menu in your activity:\n\n```java\nwheelMenu = (WheelMenu) findViewById(R.id.wheelMenu);\n\n//set the no of divisions in the wheel, default is 1\nwheelMenu.setDivCount(12);\n\n//set the drawable to be used as the wheel image. If you\n//don't set this, you'll get a  NullPointerException.\nwheelMenu.setWheelImage(R.drawable.wheel);\n```\n\nThat's it!\n\nNow, to get the currently selected position simply call:\n\n```java\nwheelMenu.getSelectedPosition();\n```\n\nor, you can set a listener to monitor change events like so:\n\n```java\nwheelMenu.setWheelChangeListener(new WheelMenu.WheelChangeListener() {\n@Override\npublic void onSelectionChange(int selectedPosition) {\n      //do your thing\n    }\n});\n```\n\nwheel positions will start from 0.\n\n####snap-to-center\n\nThis flag is set to true by default. If true, crossing into a division will cause the wheel to auto-align itself to the center of the division. Otherwise, the wheel will just hang around wherever the user left it. You can change it by calling:\n\n```java\nwheelMenu.setSnapToCenterFlag(false)\n```\n\n####Changing the top position\n\nYou can also make any arbitrary div in the wheel to be the \"top\" postion by calling\n\n```java\nwheelMenu.setAlternateTopDiv(int);\n```\n\nFor instance, if you call ```wheelMenu.setAlternateTopDiv(6)``` then the sixth div will now be considered as the \"top\" and all calculations from that point on will reflect this. This can be useful in situations such as when you want the bottom div or right div of the wheel to be the selected position.\n\nA caveat with this is that you have to call this method after the call to ```setDivCount(int)``` . If you call it before, then your new top position will be ignored and the top will still be 0.\n\n# Sample\n\nCheck out the [sample application](https://github.com/anupcowkur/Android-Wheel-Menu/tree/master/wheel-menu-sample) to see it in action!\n\n# Contributing\nContributions welcome via Github pull requests.\n\n# License\nThis project is licensed under the MIT License. Please refer the [License.txt](https://github.com/anupcowkur/Android-Wheel-Menu/blob/master/License.txt) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanupcowkur%2FAndroid-Wheel-Menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanupcowkur%2FAndroid-Wheel-Menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanupcowkur%2FAndroid-Wheel-Menu/lists"}