# FlowHelper **Repository Path**: samwen2019/FlowHelper ## Basic Information - **Project Name**: FlowHelper - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-18 - **Last Updated**: 2020-12-19 ## 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/#LillteZheng/FlowHelper)   [](https://blog.csdn.net/u011418943) ## 使用 ``` allprojects { repositories { ... maven { url 'https://jitpack.io' } } } ``` ``` implementation 'com.github.LillteZheng:FlowHelper:v1.22' ``` **如果要支持 AndroidX ,如果你的工程已经有以下代码,直接关联即可:** ``` android.useAndroidX=true #自动支持 AndroidX 第三方库 android.enableJetifier=true ``` ## TabFlowLayout 效果图
| 没有结合ViewPager | 结合ViewPager |
|---|---|
![]() |
![]() |
| 竖直效果 |
|---|
![]() |
| LabelFlowLayout | LabelFlowLayout 显示更多 |
|---|---|
![]() |
![]() |
| 底部凸起 | 结合ViewPager |
|---|---|
![]() |
![]() |
## 参考
本工程参考以下优秀项目:
[鸿洋的 flowLayout](https://github.com/hongyangAndroid/FlowLayout)
[Flyco 大佬的TabLayout](https://github.com/H07000223/FlycoTabLayout)