ZUI易入门Android之开源的LayoutManager

Google默认为RecyclerView提供了LinearLayoutManager、StaggeredGridLayoutManager、GridLayoutManager,已经可以满足很多开发需求了,但是实际开发过程中,免不了出现一些更加新颖的交互设计。下面是收集的一些自定义的LayoutManager。

FanLayoutManager

Github源码地址:[https://github.com/Cleveroad/FanLayoutManager(https://github.com/Cleveroad/FanLayoutManager)

CarouselLayoutManager

Github源码地址:https://github.com/Azoft/CarouselLayoutManager

ChipsLayoutManager

Github源码地址:https://github.com/BelooS/ChipsLayoutManager
一种流式布局的效果,很像我们平时看到的标签云。

扫描二维码关注公众号,回复: 11320656 查看本文章

HiveLayoutManager

Github源码地址:https://github.com/Chacojack/HiveLayoutManager
一个蜂巢布局管理器

vlayout

Github源码地址:https://github.com/alibaba/vlayout
vlayout 是手机天猫 Android 版内广泛使用的一个基础 UI 框架项目,提供了一个用于 RecyclerView 的自定义的 LayoutManger,可以实现不同布局格式的混排,也是 Tangram 框架的基础模块。

flexbox-layout

Github源码地址:https://github.com/google/flexbox-layout
flexbox-layout是Google开源的布局,其效果是实现类似CSS中的Flexbox布局效果( 具体可看:https://www.w3cplus.com/css3/a-guide-to-flexbox-new.html ),原本并不支持RecyclerView,但其最新的Alpha版本已经开始推出FlexboxLayoutManager用于支持RecyclerView实现效果。

LondonEyeLayoutManager

Github源码地址:https://github.com/danylovolokh/LondonEyeLayoutManager
一个环形菜单的布局管理器

ZLayoutManager

Github源码地址:https://github.com/mcxtzhang/ZLayoutManager
仿探探、人人影视 卡片层叠 炫动滑动布局

GalleryLayoutManager

Github源码地址:[https://github.com/BCsl/GalleryLayoutManager]
使用自定义 LayoutManager 实现 Android 中 Gallery 或者 ViewPager 控件的效果,支持垂直和水平两个方向,支持 RecycleView 的试图回收机制

CustomLayoutManager

圆弧

缩放

圆弧+缩放

画廊

用法
在build.gradle中添加

compile 'rouchuan.customlayoutmanager:customlayoutmanager:1.0.1'

然后新建layoutManager并继承CustomLayoutManager,CustomLayoutManager有几个默认的属性是可以直接使用的。



作者:time_fly
链接:https://www.jianshu.com/p/2f415100755c
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

猜你喜欢

转载自blog.csdn.net/qq_27248989/article/details/106864071