{"id":13642610,"url":"https://github.com/huazhiyuan2008/RecyclerViewCardGallery","last_synced_at":"2025-04-20T20:32:28.450Z","repository":{"id":48166839,"uuid":"67105438","full_name":"huazhiyuan2008/RecyclerViewCardGallery","owner":"huazhiyuan2008","description":"@Deprecated RecyclerView实现Card Gallery效果，替代ViewPager方案","archived":false,"fork":false,"pushed_at":"2018-05-16T12:44:34.000Z","size":14440,"stargazers_count":2628,"open_issues_count":15,"forks_count":513,"subscribers_count":45,"default_branch":"master","last_synced_at":"2025-04-07T20:09:31.465Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huazhiyuan2008.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":"2016-09-01T06:43:09.000Z","updated_at":"2025-04-04T11:18:48.000Z","dependencies_parsed_at":"2022-09-14T00:12:00.355Z","dependency_job_id":null,"html_url":"https://github.com/huazhiyuan2008/RecyclerViewCardGallery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huazhiyuan2008%2FRecyclerViewCardGallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huazhiyuan2008%2FRecyclerViewCardGallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huazhiyuan2008%2FRecyclerViewCardGallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huazhiyuan2008%2FRecyclerViewCardGallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huazhiyuan2008","download_url":"https://codeload.github.com/huazhiyuan2008/RecyclerViewCardGallery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249958850,"owners_count":21351726,"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:01:33.869Z","updated_at":"2025-04-20T20:32:24.230Z","avatar_url":"https://github.com/huazhiyuan2008.png","language":"Java","funding_links":[],"categories":["Card"],"sub_categories":[],"readme":"# RecyclerViewCardGallery\n\nRecyclerView实现Card Gallery效果，替代ViewPager方案。能够快速滑动并最终定位到居中位置\n\n![RecyclerViewCardGallery.gif](https://github.com/huazhiyuan2008/RecyclerViewCardGallery/blob/master/art/RecyclerViewCardGallery_blur.gif)\n\n录制效果有点渣，见谅~ 可下载[apk](https://github.com/huazhiyuan2008/RecyclerViewCardGallery/blob/master/art/app-debug.apk?raw=true)自己玩\n\n## Usage\n\n调用`new PageScaleHelper().attachToRecyclerView(mRecyclerView);`扩展RecyclerView\n```\nfinal LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);\nmRecyclerView.setLayoutManager(linearLayoutManager);\nmRecyclerView.setAdapter(new CardAdapter());\n// mRecyclerView绑定scale效果\nnew CardScaleHelper().attachToRecyclerView(mRecyclerView);\n```\n\n在adapter相应的位置调用\n```\nmCardAdapterHelper.onCreateViewHolder(parent, itemView);\nmCardAdapterHelper.onBindViewHolder(holder.itemView, position, getItemCount());\n```\n\n## Apk download\n[app_debug.apk](https://github.com/huazhiyuan2008/RecyclerViewCardGallery/blob/master/art/app-debug.apk?raw=true)\n\n## GPU Render测试图\n[RecyclerViewCardGallery.gif](https://github.com/huazhiyuan2008/RecyclerViewCardGallery/blob/master/art/RecyclerViewCardGallery_GPU.gif)\n\n## Reference\n[使用RecyclerView实现Gallery画廊效果](http://huazhiyuan2008.github.io/2016/09/02/使用RecyclerView实现Gallery画廊效果)\n\n\n## License\n\n```\nCopyright 2016 huazhiyuan2008\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuazhiyuan2008%2FRecyclerViewCardGallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuazhiyuan2008%2FRecyclerViewCardGallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuazhiyuan2008%2FRecyclerViewCardGallery/lists"}