{"id":13472047,"url":"https://github.com/mcxtzhang/ZLayoutManager","last_synced_at":"2025-03-26T15:31:19.414Z","repository":{"id":112693338,"uuid":"72081317","full_name":"mcxtzhang/ZLayoutManager","owner":"mcxtzhang","description":"Some custom LayoutManager .Such as SwipeCard、FLowLayout。一些自定义的LayoutManager，仿探探、人人影视 炫动滑动 卡片层叠 和流式布局等。","archived":false,"fork":false,"pushed_at":"2023-05-31T16:08:31.000Z","size":21007,"stargazers_count":2529,"open_issues_count":30,"forks_count":391,"subscribers_count":49,"default_branch":"master","last_synced_at":"2024-10-29T17:49:17.508Z","etag":null,"topics":["card","cards","flow-layout","itemtouchhelper","layoutmanager","swipeable"],"latest_commit_sha":null,"homepage":"http://blog.csdn.net/zxt0601/article/details/53730908","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/mcxtzhang.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}},"created_at":"2016-10-27T07:12:49.000Z","updated_at":"2024-10-28T01:50:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"17eaa7dc-648f-429d-96a0-f80de37482e5","html_url":"https://github.com/mcxtzhang/ZLayoutManager","commit_stats":null,"previous_names":["mcxtzhang/flowlayoutmanager"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcxtzhang%2FZLayoutManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcxtzhang%2FZLayoutManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcxtzhang%2FZLayoutManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcxtzhang%2FZLayoutManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcxtzhang","download_url":"https://codeload.github.com/mcxtzhang/ZLayoutManager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245681284,"owners_count":20655164,"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":["card","cards","flow-layout","itemtouchhelper","layoutmanager","swipeable"],"created_at":"2024-07-31T16:00:51.412Z","updated_at":"2025-03-26T15:31:19.362Z","avatar_url":"https://github.com/mcxtzhang.png","language":"Java","readme":"# LayoutManagerDemo\n[![](https://jitpack.io/v/mcxtzhang/LayoutManagerDemo.svg)](https://jitpack.io/#mcxtzhang/LayoutManagerDemo)\n\n利用自定义LayoutManager 的一些实战实例。\n\n\n相关博文：\n\n[流式布局](http://blog.csdn.net/zxt0601/article/details/52956504)\n\n[仿探探、人人影视 卡片层叠 炫动滑动布局](http://blog.csdn.net/zxt0601/article/details/52956504)\n\n\n想经济上支持我 or 想通过视频看我是怎么实现的:\n\nhttp://edu.csdn.net/course/detail/3956\n\n\nIf you like, point a star .Thank you very much!\n\n喜欢随手点个star 多谢\n\n##  在哪里找到我：\n\n我的github：\n\nhttps://github.com/mcxtzhang\n\n我的CSDN博客：\n\nhttp://blog.csdn.net/zxt0601\n\n我的稀土掘金：\n\nhttp://gold.xitu.io/user/56de210b816dfa0052e66495\n\n我的简书：\n\nhttp://www.jianshu.com/users/8e91ff99b072/timeline\n***\n\n\n# 效果一览：\n\n\n[仿探探、人人影视 卡片层叠 炫动滑动布局](http://blog.csdn.net/zxt0601/article/details/52956504)\n\n探探皇帝翻牌子即视感\n\n![探探皇帝翻牌子即视感](https://github.com/mcxtzhang/LayoutManagerDemo/blob/master/gifs/tantan.gif)\n\n人人美剧订阅界面\n\n![人人美剧订阅界面](https://github.com/mcxtzhang/LayoutManagerDemo/blob/master/gifs/renren.gif)\n\n可配置参数(同时显示6页)：\n\n![人人美剧订阅界面](https://github.com/mcxtzhang/LayoutManagerDemo/blob/master/gifs/tantan_6page.gif)\n\n\n[流式布局](http://blog.csdn.net/zxt0601/article/details/52956504)\n\n![这里写图片描述](https://github.com/mcxtzhang/FlowLayoutManager/blob/master/gifs/gif1)\n\n艾玛，换成妹子图后貌似好看了许多，我都不认识它了，好吧，项目里它一般长下面这样：\n\n![这里写图片描述](https://github.com/mcxtzhang/FlowLayoutManager/blob/master/gifs/gif2)\n\n往常这种效果，我们一般使用自定义ViewGroup实现，我以前也写了一个。[自定义VG实现流式布局](http://blog.csdn.net/zxt0601/article/details/50533658)\n\n\n# 使用：\n\n**Step 1. 在项目根build.gradle文件中增加JitPack仓库依赖。**\n```\n    allprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url \"https://jitpack.io\" }\n\t\t}\n\t}\n```\nStep 2. Add the dependency\n```\n    dependencies {\n\t        compile 'com.github.mcxtzhang:ZLayoutManager:V1.1.0'\n\t}\n```\n\nStep 3.\n[仿探探、人人影视 卡片层叠 炫动滑动布局](http://blog.csdn.net/zxt0601/article/details/52956504):\n\n以后老板让你做这种效果，你只需要：\n```\n\tmRv.setLayoutManager(new OverLayCardLayoutManager());\n        CardConfig.initConfig(this);\n        ItemTouchHelper.Callback callback = new RenRenCallback(mRv, mAdapter, mDatas);\n        ItemTouchHelper itemTouchHelper = new ItemTouchHelper(callback);\n        itemTouchHelper.attachToRecyclerView(mRv);\n```\n\n如果需要定制特殊的参数，例如显示6层：\n\n```\n\t\t CardConfig.MAX_SHOW_COUNT = 6;\n```\n\n设置仿探探竖直上下滑动，不删除Item。\n\n水平方向判断误差阈值x：\n```\n        final TanTanCallback callback = new TanTanCallback(mRv, mAdapter, mDatas);\n        callback.setHorizontalDeviation(x);\n```\n\n[流式布局](http://blog.csdn.net/zxt0601/article/details/52956504):\n```\n        mRv.setLayoutManager(new FlowLayoutManager());\n```\n\n刚建了个QQ搞基交流群：\n557266366 \n里面现在没有人。\n嗯，就这样吧。\n\n## 使用的Adapter：\nhttps://github.com/mcxtzhang/all-base-adapter\n","funding_links":[],"categories":["Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcxtzhang%2FZLayoutManager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcxtzhang%2FZLayoutManager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcxtzhang%2FZLayoutManager/lists"}