RecyclerView的开源LayoutManager

2017-05-04  本文已影响0人  JimLong
(转载)原文链接地址

Google默认为RecyclerView提供了LinearLayoutManager、StaggeredGridLayoutManager、GridLayoutManager,已经可以满足很多开发需求了,但是实际开发过程中,免不了出现一些更加新颖的交互设计。于是,便从Github上整理了一波关于RecyclerView可以使用的LayoutManager,在实际开发中需要用到时,遇到相似的效果时即可随手拈来,提高效率。

FanLayoutManager

https://github.com/Cleveroad/FanLayoutManager

FanLayoutManager.gif

来自国外一家名为Cleveroad的科技公司的开源作品,因其效果就像风扇扇叶旋转一样,所以名中带Fan。效果不错,API上也有很多的配置参数,用起来还是挺灵活的。

CarouselLayoutManager

https://github.com/Azoft/CarouselLayoutManager

CarouselLayoutManager2.gif

让你的RecyclerView秀出传送带效果,支持横向和纵向两种选择。

ChipsLayoutManager

https://github.com/BelooS/ChipsLayoutManager

ChipsLayoutManager.gif

一种流式布局的效果,很像我们平时看到的标签云。该库同样提供了很多可配置效果的API,并且支持多种多花效果。

HiveLayoutManager

https://github.com/Chacojack/HiveLayoutManager

HiveLayoutManager1.gif

国人写的一个蜂巢布局管理器,除了外观帅气外,其增删查改的动画效果也是很赞的。

vlayout

https://github.com/alibaba/vlayout

vlayout.gif

vlayout 是手机天猫 Android 版内广泛使用的一个基础 UI 框架项目,提供了一个用于 RecyclerView 的自定义的 LayoutManger,可以实现不同布局格式的混排,目标是支撑客户端 native 页面的快速开发,它也是 Tangram 框架的基础模块。

FlexboxLayoutManager

https://github.com/google/flexbox-layout

flexbox-layout.gif flexaaa.jpg

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

LondonEyeLayoutManager

https://github.com/danylovolokh/LondonEyeLayoutManager

LondonEyeLayoutManager2.gif

一个环形菜单的布局管理器,以前在建行的Android客户端就见过此效果,不过那时候是用ViewGroup实现的。

上一篇下一篇

猜你喜欢

热点阅读