{"id":16790101,"url":"https://github.com/chenlittleping/recyclercoverflow","last_synced_at":"2025-04-04T12:08:46.638Z","repository":{"id":109497393,"uuid":"88574269","full_name":"ChenLittlePing/RecyclerCoverFlow","owner":"ChenLittlePing","description":"使用RecyclerView，自定义LayoutManager实现旋转木马相册效果","archived":false,"fork":false,"pushed_at":"2020-09-01T01:59:52.000Z","size":15778,"stargazers_count":834,"open_issues_count":22,"forks_count":152,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-10-14T08:29:07.285Z","etag":null,"topics":["android","coverflow","recyclerview"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChenLittlePing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-04-18T02:51:11.000Z","updated_at":"2024-09-20T03:41:11.000Z","dependencies_parsed_at":"2023-04-25T04:48:48.411Z","dependency_job_id":null,"html_url":"https://github.com/ChenLittlePing/RecyclerCoverFlow","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChenLittlePing%2FRecyclerCoverFlow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChenLittlePing%2FRecyclerCoverFlow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChenLittlePing%2FRecyclerCoverFlow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChenLittlePing%2FRecyclerCoverFlow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChenLittlePing","download_url":"https://codeload.github.com/ChenLittlePing/RecyclerCoverFlow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174423,"owners_count":20896078,"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","coverflow","recyclerview"],"created_at":"2024-10-13T08:29:00.847Z","updated_at":"2025-04-04T12:08:46.620Z","avatar_url":"https://github.com/ChenLittlePing.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RecyclerCoverFlow\n使用RecyclerView，自定义LayoutManager实现旋转木马相册效果\n\n![image](https://github.com/ChenLittlePing/RecyclerCoverFlow/blob/master/gif/demo.gif)\n\n## Gradle依赖\n请查看最新版本：[Release](https://github.com/ChenLittlePing/RecyclerCoverFlow/releases)\n\n如：`compile 'com.chenlittleping:recyclercoverflow:1.0.6'`\n\n## 使用方式\n### 1,xml中加入\n```xml\n    \u003crecycler.coverflow.RecyclerCoverFlow\n            android:id=\"@+id/list\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\u003e\n    \u003c/recycler.coverflow.RecyclerCoverFlow\u003e\n```\n### 2，Activity中初始化，其中Adapter与RecyclerView的Adapter完全一致\n```java\n    mList = (RecyclerCoverFlow) findViewById(R.id.list);\n    //        mList.setFlatFlow(true); //平面滚动\n    mList.setAdapter(new Adapter(this));\n    mList.setOnItemSelectedListener(new CoverFlowLayoutManger.OnSelected() {\n        @Override\n        public void onItemSelected(int position) {\n            ((TextView)findViewById(R.id.index)).setText((position+1)+\"/\"+mList.getLayoutManager().getItemCount());\n        }\n    });\n```\n\n## 实现原理：\n\nhttps://www.jianshu.com/p/1837a801e599\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenlittleping%2Frecyclercoverflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenlittleping%2Frecyclercoverflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenlittleping%2Frecyclercoverflow/lists"}