{"id":21130332,"url":"https://github.com/wangjiegulu/WheelView","last_synced_at":"2025-07-09T01:33:14.379Z","repository":{"id":18241311,"uuid":"21389236","full_name":"wangjiegulu/WheelView","owner":"wangjiegulu","description":"Android滚动选择控件","archived":false,"fork":false,"pushed_at":"2022-04-06T19:55:46.000Z","size":825,"stargazers_count":1516,"open_issues_count":26,"forks_count":572,"subscribers_count":49,"default_branch":"master","last_synced_at":"2023-11-07T15:19:30.667Z","etag":null,"topics":["android","custom-view","java","wheelview"],"latest_commit_sha":null,"homepage":null,"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/wangjiegulu.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":"2014-07-01T13:46:18.000Z","updated_at":"2023-11-02T02:27:14.000Z","dependencies_parsed_at":"2022-07-14T03:40:30.628Z","dependency_job_id":null,"html_url":"https://github.com/wangjiegulu/WheelView","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/wangjiegulu%2FWheelView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangjiegulu%2FWheelView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangjiegulu%2FWheelView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangjiegulu%2FWheelView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangjiegulu","download_url":"https://codeload.github.com/wangjiegulu/WheelView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476370,"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":["android","custom-view","java","wheelview"],"created_at":"2024-11-20T05:32:36.929Z","updated_at":"2024-11-20T05:32:45.113Z","avatar_url":"https://github.com/wangjiegulu.png","language":"Java","readme":"WheelView\n=========\n\n\u003e 最后打个广告哈，阿里巴巴，杭州招技术，支持电话视频面试，有兴趣的同学戳这里：https://github.com/wangjiegulu/jobs\n\n\u003cimg src='image/image01.png' height='500px'/\u003e\n\u003cimg src='image/image02.png' height='500px'/\u003e\n\u003cimg src='image/image03.png' height='500px'/\u003e\n\n### How to use\n\n#### layout: \n```xml\n\u003ccom.wangjie.wheelview.WheelView\n        android:id=\"@+id/main_wv\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n    /\u003e\n```\n\n#### Activity: \n\n```java    \nWheelView wva = (WheelView) findViewById(R.id.main_wv);\nwva.setOffset(1);\nwva.setItems(Arrays.asList(PLANETS));\nwva.setOnWheelViewListener(new WheelView.OnWheelViewListener() {\n    @Override\n    public void onSelected(int selectedIndex, String item) {\n        Log.d(TAG, \"selectedIndex: \" + selectedIndex + \", item: \" + item);\n    }\n});\n```\n\n#### Show in dialog: \n\n```java\nView outerView = LayoutInflater.from(this).inflate(R.layout.wheel_view, null);\nWheelView wv = (WheelView) outerView.findViewById(R.id.wheel_view_wv);\nwv.setOffset(2);\nwv.setItems(Arrays.asList(PLANETS));\nwv.setSeletion(3);\nwv.setOnWheelViewListener(new WheelView.OnWheelViewListener() {\n    @Override\n    public void onSelected(int selectedIndex, String item) {\n        Log.d(TAG, \"[Dialog]selectedIndex: \" + selectedIndex + \", item: \" + item);\n    }\n});\n\nnew AlertDialog.Builder(this)\n        .setTitle(\"WheelView in Dialog\")\n        .setView(outerView)\n        .setPositiveButton(\"OK\", null)\n        .show();\n```\n    \nLicense\n=======\n\n    Copyright 2014 Wang Jie\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[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-WheelView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1433)\n","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangjiegulu%2FWheelView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangjiegulu%2FWheelView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangjiegulu%2FWheelView/lists"}