# FlowHelper **Repository Path**: liuchaoya/FlowHelper ## Basic Information - **Project Name**: FlowHelper - **Description**: 搬运工 - **Primary Language**: Android - **License**: Apache-2.0 - **Default Branch**: feature_3.0 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-01-11 - **Last Updated**: 2022-01-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FlowHelper FlowHelper 可以帮助您迅速构建Tab,比如热搜、搜索记录、与ViewPager搭配的工具类; **注意注意注意!!!** **提问题的时候,请遵循以下标准** - **现象: 操作步骤,应用场景** - **对应代码: 贴图或者贴代码** - **机型或版本: 可选** **后面对描述不清的问题,不予理会,精力有限,感谢理解** **具体原理可参考着四篇文章:** **如果你也想自己写一个,可以参考以下几篇文章** [实现一个可定制化的TabFlowLayout(一) -- 测量与布局](https://blog.csdn.net/u011418943/article/details/103804677) [实现一个可定制化的TabFlowLayout(二) -- 实现滚动和平滑过渡](https://blog.csdn.net/u011418943/article/details/103807920) [实现一个可定制化的TabFlowLayout(三) -- 动态数据添加与常用接口封装](https://blog.csdn.net/u011418943/article/details/103817967) [实现一个可定制化的TabFlowLayout(四) -- 与ViewPager 结合,实现炫酷效果](https://blog.csdn.net/u011418943/article/details/103851359) [实现一个可定制化的TabFlowLayout -- 原理篇](https://juejin.im/post/5e365f52f265da3e3d511d65) [实现一个可定制化的TabFlowLayout -- 说明文档](https://juejin.im/post/5e2f9dc7e51d4558836e3f99) [FlowLayout 和 Recyclerview 实现双联表联动](https://blog.csdn.net/u011418943/article/details/104083568) 如果您也想快速实现 **Banner 轮播图**,可以使用这个库 https://github.com/LillteZheng/ViewPagerHelper **工程实际使用 - 玩Android 客户端 : https://github.com/LillteZheng/WanAndroid** [![](https://jitpack.io/v/LillteZheng/FlowHelper.svg)](https://jitpack.io/#LillteZheng/FlowHelper) ![](https://img.shields.io/github/stars/LillteZheng/FlowHelper.svg) ![](https://img.shields.io/github/forks/LillteZheng/FlowHelper.svg) [![](https://img.shields.io/badge/%E4%BD%9C%E8%80%85-%E9%83%91%E5%B0%91%E9%94%90-green.svg)](https://blog.csdn.net/u011418943) ## 使用 在buid.gradle (新版as在setting.gradle) ``` allprojects { repositories { ... maven { url 'https://jitpack.io' } } } ``` **如果你的工程的是androidx且想支持ViewPager2,可以关联tablibx库** ``` implementation 'com.github.LillteZheng:FlowHelper:v1.32' ``` **support可以关联以下连接,请尽快切到androidx,support包不再维护** ``` implementation 'com.github.LillteZheng.FlowHelper:tablib:v1.29' ``` **不一定有时间处理,如果工程有不满足或bug,可以修改后提mr** ## TabFlowLayout 效果图
没有结合ViewPager 结合ViewPager
竖直效果
**目前TabFlowLayout 支持以下效果:** - **矩形** - **三角形** - **圆角** - **shape 或者 bitmap 等资源** - **自定义功能** - **放大Item效果,与上述效果可共用** - **颜色渐变效果,需要使用 TabColorTextView 控件,与上述效果可共用,只支持有viewpager 的情况** - **竖直效果,需要设置 tab_orientation = vertical** - **宽度均分** [TabFlowLayout 使用说明](https://github.com/LillteZheng/FlowHelper/blob/feature_3.0/TAB_README3_0.md) ## LabelFlowLayout 效果图
LabelFlowLayout LabelFlowLayout 显示更多
**LabelFlowLayout 支持以下效果:** - **单选** - **多选** - **长按** - **显示更多** - **收起** [LabelFlowLayout 使用说明](https://github.com/LillteZheng/FlowHelper/blob/master/Label_README.md) **其实TabFlowLayout也可以支持底部导航栏,但其实没必要,可以参考这个库 https://github.com/LillteZheng/CusBottomHelper**
底部凸起 结合ViewPager
## 版本信息: - v1.32 : 修复res和round,tab_margin_x 不起作用的问题 - v1.30 : 重构分离了ViewPager和非ViewPager的情况,并处理数据增加减少时,notifyDataChange()导致布局混乱的问题 - v1.291: 修复notifyDataChange部分场景不起作用的问题,小重构了参数配置 - v1.29 : 修复添加了tabWidth,round和res第一次不起作用的问题 - v1.28 : 1. 修复底部条跳动的问题;2. 修复TabColorText不能设置padding的问题 - v1.27 : 修复 tab_color 不起作用的问题 - v1.26 : 增加 ViewPager2 .... ## QQ群 为方便大家交流,创建了一个qq群,群号216618259 ## 如果该项目对您有帮助,赞赏一下吧 ^_^
赞赏名单 方式
*头 微信
*变 微信
## 参考 本工程参考以下优秀项目: [鸿洋的 flowLayout](https://github.com/hongyangAndroid/FlowLayout) [Flyco的 TabLayout](https://github.com/H07000223/FlycoTabLayout)