RecyclerView的開源LayoutManager

(轉(zhuǎn)載)原文鏈接地址

Google默認為RecyclerView提供了LinearLayoutManager、StaggeredGridLayoutManager、GridLayoutManager,已經(jīng)可以滿足很多開發(fā)需求了,但是實際開發(fā)過程中,免不了出現(xiàn)一些更加新穎的交互設計。于是,便從Github上整理了一波關于RecyclerView可以使用的LayoutManager,在實際開發(fā)中需要用到時,遇到相似的效果時即可隨手拈來,提高效率。

FanLayoutManager

https://github.com/Cleveroad/FanLayoutManager

FanLayoutManager.gif

來自國外一家名為Cleveroad的科技公司的開源作品,因其效果就像風扇扇葉旋轉(zhuǎn)一樣,所以名中帶Fan。效果不錯,API上也有很多的配置參數(shù),用起來還是挺靈活的。

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 版內(nèi)廣泛使用的一個基礎 UI 框架項目,提供了一個用于 RecyclerView 的自定義的 LayoutManger,可以實現(xiàn)不同布局格式的混排,目標是支撐客戶端 native 頁面的快速開發(fā),它也是 Tangram 框架的基礎模塊。

FlexboxLayoutManager

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

flexbox-layout.gif
flexaaa.jpg

flexbox-layout是Google開源的布局,其效果是實現(xiàn)類似CSS中的Flexbox布局效果( 具體可看:https://www.w3cplus.com/css3/a-guide-to-flexbox-new.html ),原本并不支持RecyclerView,但其最新的Alpha版本已經(jīng)開始推出FlexboxLayoutManager用于支持RecyclerView實現(xiàn)效果。

LondonEyeLayoutManager

https://github.com/danylovolokh/LondonEyeLayoutManager

LondonEyeLayoutManager2.gif

一個環(huán)形菜單的布局管理器,以前在建行的Android客戶端就見過此效果,不過那時候是用ViewGroup實現(xiàn)的。

最后編輯于
?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容