{"id":13645501,"url":"https://github.com/yixiaolunhui/LoopRotarySwitch","last_synced_at":"2025-04-21T14:31:26.103Z","repository":{"id":89903794,"uuid":"44476938","full_name":"yixiaolunhui/LoopRotarySwitch","owner":"yixiaolunhui","description":"3d旋转切换view，类似旋转木马效果。可以自动切换！","archived":false,"fork":false,"pushed_at":"2020-01-28T10:05:32.000Z","size":8179,"stargazers_count":810,"open_issues_count":4,"forks_count":142,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-08-04T00:07:07.023Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yixiaolunhui.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-18T12:16:57.000Z","updated_at":"2024-07-09T06:00:00.000Z","dependencies_parsed_at":"2023-04-16T17:30:44.551Z","dependency_job_id":null,"html_url":"https://github.com/yixiaolunhui/LoopRotarySwitch","commit_stats":null,"previous_names":["dalong982242260/looprotaryswitch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yixiaolunhui%2FLoopRotarySwitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yixiaolunhui%2FLoopRotarySwitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yixiaolunhui%2FLoopRotarySwitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yixiaolunhui%2FLoopRotarySwitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yixiaolunhui","download_url":"https://codeload.github.com/yixiaolunhui/LoopRotarySwitch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250070173,"owners_count":21369839,"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-02T01:02:36.033Z","updated_at":"2025-04-21T14:31:24.671Z","avatar_url":"https://github.com/yixiaolunhui.png","language":"Java","funding_links":[],"categories":["其他"],"sub_categories":[],"readme":"## 介绍\n3D旋转木马容器控件，可以无限循环，自动旋转（方向分顺时针和逆时针），可以手势切换或者点击切换。\n\n## 效果图\n\n![image](https://github.com/dalong982242260/LoopRotarySwitch/blob/master/img/dalong2.gif)\n\n\n## 如何使用\n\n\n在你的项目Gradle 添加\n\n     compile 'com.dalong:loopview:1.0.4'\n\n或者直接引入库文件\n\n## 1.0.4版本\n     1、完善点击切换功能。\n \n## 1.0.2版本\n     1、增加方向设置.\n  \n## 1.0.1版本\n     1、优化代码。\n     2、增加自动旋转方向设置\n \n## 1.0.0版本\n     1、支持3d旋转。\n     2、支持自定义旋转。\n     3、点击3d切换，触摸滑动3d切换\n \n## 配置view \n\n布局xml里：\n\n        \u003ccom.dalong.library.view.LoopRotarySwitchView\n                android:id=\"@+id/mLoopRotarySwitchView\"\n                android:layout_width=\"fill_parent\"\n                android:gravity=\"center\"\n                android:layout_weight=\"1\"\n                app:direction=\"right\"\n                android:layout_height=\"0dp\"\u003e\n                \u003cImageView\n                    android:src=\"@mipmap/image1\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\" /\u003e\n                \u003cImageView\n                    android:src=\"@mipmap/image2\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\" /\u003e\n                \u003cImageView\n                    android:src=\"@mipmap/image3\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\" /\u003e\n                \u003cImageView\n                    android:src=\"@mipmap/image4\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\" /\u003e\n            \u003c/com.dalong.library.view.LoopRotarySwitchView\u003e\n            \n            \n 代码设置：\n \n    mLoopRotarySwitchView\n                   .setR(300)//设置R的大小\n                   .setAutoRotation(true)//是否自动切换\n                   .setAutoScrollDirection(LoopRotarySwitchView.AutoScrollDirection.left)//切换方向\n                   .setAutoRotationTime(2000);//自动切换的时间  单位毫秒 \n \n \n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyixiaolunhui%2FLoopRotarySwitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyixiaolunhui%2FLoopRotarySwitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyixiaolunhui%2FLoopRotarySwitch/lists"}