前言
技術群裡面經常有人問到一些炫酷的UI效果實現方法,有時候我都是給一個相同或者相似效果的Github連結,有同學私信給我說,大佬,怎麼這些效果你都能找到?你是怎麼搜尋的,或者有其他什麼祕方?會利用Google、百度等搜尋工具搜尋是一方面,另一個重要的方面是:記錄蒐藏,當看到一個炫酷的效果的時候,記得收藏起來,記錄到自己雲筆記或者收藏夾裡,看得多了,印象就比較深刻,當遇到類似效果的時候,到自己記錄收藏的地方找就是了。今天為大家推薦我所收藏的一些炫酷實用的效果的開源庫(選擇其中10個)。
1、DiscreteScrollView
Github: https://github.com/yarolegovich/DiscreteScrollView
簡介: DiscreteScrollView
是基於RecyclerView 實現的一個橫向滑動列表,當前Item顯示在螢幕中央並且可以左右滑動,有點像ViewPager,但是可以快速滑動。提供了簡單的API來實現炫酷的動畫效果。
效果展示:


2、MaterialViewPager
Github: https://github.com/pinguo-zhouwei/MaterialViewPager
簡介: 和名字一樣,Material Design 效果的ViewPager, 效果很nice,請看gif
效果展示(有多重模式):
- Titlebar Logo

- Fading Logo

- Hide Logo and Toolbar

- Sticky Toolbar

- Transparent Toolbar

- Standard

3、BoomMenu
Github: https://github.com/pinguo-zhouwei/BoomMenu
簡介: 傳統的選單是不是看得有些厭倦了,boom ....爆炸效果的選單瞭解一下?功能強大、效果炫酷,有很多種模式。
效果展示:




4、LayoutManagerGroup
Github: https://github.com/DingMouRen/LayoutManagerGroup
簡介: 自定義RecyclerView 的LayoutManager實現幾種炫酷的效果。
效果展示:
- EchelonLayoutManager

- SkidRightLayoutManager

- SlideLayoutManager

5、Android-SpinKit
Github: https://github.com/ybq/Android-SpinKit
簡介: Android 自定義View 的方式實現的各種炫酷的動畫,特別精緻和優美,以前專門寫文章介紹過。
效果展示:

6、Matisse
Github: https://github.com/zhihu/Matisse 簡介: Matisse是知乎開源的一個本地選擇照片和視訊的庫,UI設計得非常精美。有如特性:
- 可以在Fragment/Activity 中使用
- 選擇照片的格式包括:PNG、JPEG 、GIF.視訊格式包括:MPEG, MP4
- 支援不同的主題並且可以自定義主題
- 支援不同的圖片載入方式(Picasso、Glide等)
- 自定義過濾規則
效果展示:
- Zhihu Style

- Dracula Style

- Preview

7、CosmoCalendar
Github: https://github.com/ApplikeySolutions/CosmoCalendar
簡介: 一個高度自定義的日曆庫,UI精美,支援多種模式。
效果展示:
- 單個日期選擇

- 多個日期選擇

- 選擇一個範圍日期

- 自定義

8、CardStackView
Github: https://github.com/loopeer/CardStackView
簡介: 三種炫酷的列表卡片滑動動畫,分別為:alldown, updown, updownstack
效果展示:


9、CalendarExaple
Github: https://github.com/codbking/CalendarExaple
簡介: 這是一個高仿釘釘和小米的日曆控制元件,支援快速滑動,介面快取。想要定製化UI,使用起來非常簡單,就像使用ListView一樣
一些特點:
可以自定義日曆控制元件UI 支援快速滑動 支援農曆和陽曆 介面UI快取和日曆資料快取 擴充套件view支援listView的滑動
效果展示:


10、MZBannerView
Github: https://github.com/pinguo-zhouwei/MZBannerView
簡介: 仿魅族BannerView,圖片輪播控制元件,支援多種模式切換:普通ViewPager使用,普通Banner使用,仿魅族Banner使用。
效果展示:



結尾
在我們平時的工作、學習中,要養成記筆記的好習慣、好記性不如爛筆頭。平時自己遇到一些炫酷的效果,我都喜歡記錄到筆記中,遇到相似的需求就好找了。本文這些炫酷的效果有興趣的可以去對應的Github 檢視使用方式,試試效果,都挺讚的。