作為一名開發(fā)工程師,使用優(yōu)秀的庫(kù)及框架,可以節(jié)省時(shí)間,避免造輪子,下面是一些平時(shí)收集的安卓庫(kù)及框架。
<一>網(wǎng)絡(luò)
1. volley
- 簡(jiǎn)介:Android開發(fā)團(tuán)隊(duì)也是意識(shí)到了有必要將HTTP的通信操作再進(jìn)行簡(jiǎn)單化,于是2013年Google I/O大會(huì)上推出了一個(gè)新的網(wǎng)絡(luò)通信框架——Volley
- GitHub地址:https://github.com/google/volley
- 中文教程:https://blog.csdn.net/guolin_blog/article/details/17482095
- 評(píng)價(jià):Volley可是說是把AsyncHttpClient和Universal-Image-Loader的優(yōu)點(diǎn)集于了一身,既可以像AsyncHttpClient一樣非常簡(jiǎn)單地進(jìn)行HTTP通信,也可以像Universal-Image-Loader一樣輕松加載網(wǎng)絡(luò)上的圖片。
2. okhttp
- 簡(jiǎn)介:An HTTP+HTTP/2 client for Android and Java applications.
- GitHub地址:https://github.com/square/okhttp
- 官網(wǎng):http://square.github.io/okhttp/
- 中文教程:郭霖博客--封裝okhttp
- 評(píng)價(jià):會(huì)從很多常用的連接問題中自動(dòng)恢復(fù)。如果您的服務(wù)器配置了多個(gè)IP地址,當(dāng)?shù)谝粋€(gè)IP連接失敗的時(shí)候,OkHttp會(huì)自動(dòng)嘗試下一個(gè)IP。OkHttp還處理了代理服務(wù)器問題和SSL握手失敗問題
3. OkGo
- 簡(jiǎn)介:OkGo - 3.0 震撼來(lái)襲,該庫(kù)是基于 Http 協(xié)議,封裝了 OkHttp 的網(wǎng)絡(luò)請(qǐng)求框架,比 Retrofit 更簡(jiǎn)單易用,支持 RxJava,RxJava2,支持自定義緩存,支持批量斷點(diǎn)下載管理和批量上傳管理功能
- GitHub地址:https://github.com/jeasonlzy/okhttp-OkGo
- 官網(wǎng):https://github.com/jeasonlzy/okhttp-OkGo/wiki
- 評(píng)價(jià):國(guó)人封裝okhttp的網(wǎng)絡(luò)請(qǐng)求框架
<二>圖片
Glide
- 簡(jiǎn)介:An image loading and caching library for Android focused on smooth scrolling
- GitHub地址:https://github.com/bumptech/glide
- 官網(wǎng):https://bumptech.github.io/glide/
- 中文教程:郭霖博客--Glide完全解析
- 評(píng)價(jià):優(yōu)秀的圖片加載框架
Glide-transformations
- 簡(jiǎn)介:An Android transformation library providing a variety of image transformations for Glide.
- GitHub地址: https://github.com/wasabeef/glide-transformations
- 評(píng)價(jià):配合Glide使用,剪切圖片
subsampling-scale-image-view
- 簡(jiǎn)介:Android library (AAR). Highly configurable, easily extendable deep zoom view for displaying huge images without loss of detail. Perfect for photo galleries, maps, building plans etc.
- GitHub地址: https://github.com/davemorrissey/subsampling-scale-image-view
- 評(píng)價(jià):大圖片處理
BigImageViewer
- 簡(jiǎn)介:Big image viewer supporting pan and zoom, with very little memory usage and full featured image loading choices. Powered by Subsampling Scale Image View, Fresco, Glide, and Picasso. Even with gif and webp support!
- GitHub地址: https://github.com/Piasy/BigImageViewer
- 評(píng)價(jià):圖片預(yù)覽,伸縮放大,包括GIF
RoundedImageView
- 簡(jiǎn)介:A fast ImageView that supports rounded corners, ovals, and circles.
- GitHub地址: https://github.com/vinc3m1/RoundedImageView
- 評(píng)價(jià):圖片圓角處理
Luban
- 簡(jiǎn)介:Luban(魯班)—Image compression with efficiency very close to WeChat Moments
- GitHub地址: https://github.com/Curzibn/Luban
- 評(píng)價(jià):可能是最接近微信朋友圈的圖片壓縮算法
<三>列表
MagicIndicator
- 簡(jiǎn)介:A powerful, customizable and extensible ViewPager indicator framework. As the best alternative of ViewPagerIndicator, TabLayout and PagerSlidingTabStrip —— 強(qiáng)大、可定制、易擴(kuò)展的 ViewPager 指示器框架。是ViewPagerIndicator、TabLayout、PagerSlidingTabStrip的最佳替代品。支持角標(biāo),更支持在非ViewPager場(chǎng)景下使用(使用hide()、show()切換Fragment或使用setVisibility切換FrameLayout里的View等)
- GitHub地址:https://github.com/hackware1993/MagicIndicator
- 中文教程:http://www.itdecent.cn/p/f3022211821c
- 評(píng)價(jià):強(qiáng)大、可定制、易擴(kuò)展的 ViewPager 指示器框架
BaseRecyclerViewAdapterHelper
- 簡(jiǎn)介:高效的使用RecyclerView應(yīng)對(duì)項(xiàng)目中的常見需求的Adapter,RecycleView從未如此簡(jiǎn)單!
- GitHub地址:https://github.com/CymChad/BaseRecyclerViewAdapterHelper
- 中文教程:http://www.itdecent.cn/p/b343fcff51b0
- 評(píng)價(jià):避免寫ViewHolder等類,節(jié)省了相當(dāng)多代碼量
<四>時(shí)間
CalendarView
- 簡(jiǎn)介:Android上一個(gè)優(yōu)雅、萬(wàn)能自定義UI、支持周視圖、自定義周起始、性能高效的日歷控件,支持熱插拔實(shí)現(xiàn)的UI定制!支持標(biāo)記、自定義顏色、農(nóng)歷、自定義月視圖各種顯示模式等。Canvas繪制,速度快、占用內(nèi)存低,你真的想不到日歷居然還可以如此優(yōu)雅!An elegant, highly customized and high-performance Calendar Widget on Android.
- GitHub地址:https://github.com/huanghaibin-dev/CalendarView
- 中文教程:滿足你各種姿勢(shì)的最美Android開源日歷
- 評(píng)價(jià):封裝很好的日歷控件
<五>項(xiàng)目
GeekNews
- 簡(jiǎn)介:A pure reading App based on Material Design + MVP + RxJava2 + Retrofit + Dagger2 + Realm + Glide!
- GitHub地址:https://github.com/codeestX/GeekNews
- 評(píng)價(jià):一個(gè)優(yōu)秀的代碼架構(gòu)項(xiàng)目