作為一名開發(fā)工程師,使用優(yōu)秀的庫及框架,可以節(jié)省時間舟误,避免造輪子造垛,下面是一些平時收集的安卓庫及框架魔招。
<一>網(wǎng)絡(luò)
1. volley
- 簡介:Android開發(fā)團隊也是意識到了有必要將HTTP的通信操作再進行簡單化,于是2013年Google I/O大會上推出了一個新的網(wǎng)絡(luò)通信框架——Volley
- GitHub地址:https://github.com/google/volley
- 中文教程:https://blog.csdn.net/guolin_blog/article/details/17482095
- 評價:Volley可是說是把AsyncHttpClient和Universal-Image-Loader的優(yōu)點集于了一身五辽,既可以像AsyncHttpClient一樣非常簡單地進行HTTP通信办斑,也可以像Universal-Image-Loader一樣輕松加載網(wǎng)絡(luò)上的圖片。
2. okhttp
- 簡介:An HTTP+HTTP/2 client for Android and Java applications.
- GitHub地址:https://github.com/square/okhttp
- 官網(wǎng):http://square.github.io/okhttp/
- 中文教程:郭霖博客--封裝okhttp
- 評價:會從很多常用的連接問題中自動恢復(fù)杆逗。如果您的服務(wù)器配置了多個IP地址乡翅,當?shù)谝粋€IP連接失敗的時候,OkHttp會自動嘗試下一個IP罪郊。OkHttp還處理了代理服務(wù)器問題和SSL握手失敗問題
3. OkGo
- 簡介:OkGo - 3.0 震撼來襲蠕蚜,該庫是基于 Http 協(xié)議,封裝了 OkHttp 的網(wǎng)絡(luò)請求框架排龄,比 Retrofit 更簡單易用波势,支持 RxJava翎朱,RxJava2,支持自定義緩存尺铣,支持批量斷點下載管理和批量上傳管理功能
- GitHub地址:https://github.com/jeasonlzy/okhttp-OkGo
- 官網(wǎng):https://github.com/jeasonlzy/okhttp-OkGo/wiki
- 評價:國人封裝okhttp的網(wǎng)絡(luò)請求框架
<二>圖片
Glide
- 簡介: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完全解析
- 評價:優(yōu)秀的圖片加載框架
Glide-transformations
- 簡介:An Android transformation library providing a variety of image transformations for Glide.
- GitHub地址: https://github.com/wasabeef/glide-transformations
- 評價:配合Glide使用拴曲,剪切圖片
subsampling-scale-image-view
- 簡介: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
- 評價:大圖片處理
BigImageViewer
- 簡介: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
- 評價:圖片預(yù)覽,伸縮放大凛忿,包括GIF
RoundedImageView
- 簡介:A fast ImageView that supports rounded corners, ovals, and circles.
- GitHub地址: https://github.com/vinc3m1/RoundedImageView
- 評價:圖片圓角處理
Luban
- 簡介:Luban(魯班)—Image compression with efficiency very close to WeChat Moments
- GitHub地址: https://github.com/Curzibn/Luban
- 評價:可能是最接近微信朋友圈的圖片壓縮算法
<三>列表
MagicIndicator
- 簡介:A powerful, customizable and extensible ViewPager indicator framework. As the best alternative of ViewPagerIndicator, TabLayout and PagerSlidingTabStrip —— 強大澈灼、可定制、易擴展的 ViewPager 指示器框架店溢。是ViewPagerIndicator叁熔、TabLayout、PagerSlidingTabStrip的最佳替代品床牧。支持角標荣回,更支持在非ViewPager場景下使用(使用hide()、show()切換Fragment或使用setVisibility切換FrameLayout里的View等)
- GitHub地址:https://github.com/hackware1993/MagicIndicator
- 中文教程:http://www.reibang.com/p/f3022211821c
- 評價:強大戈咳、可定制心软、易擴展的 ViewPager 指示器框架
BaseRecyclerViewAdapterHelper
- 簡介:高效的使用RecyclerView應(yīng)對項目中的常見需求的Adapter,RecycleView從未如此簡單著蛙!
- GitHub地址:https://github.com/CymChad/BaseRecyclerViewAdapterHelper
- 中文教程:http://www.reibang.com/p/b343fcff51b0
- 評價:避免寫ViewHolder等類删铃,節(jié)省了相當多代碼量
<四>時間
CalendarView
- 簡介:Android上一個優(yōu)雅、萬能自定義UI踏堡、支持周視圖猎唁、自定義周起始、性能高效的日歷控件顷蟆,支持熱插拔實現(xiàn)的UI定制诫隅!支持標記、自定義顏色帐偎、農(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
- 中文教程:滿足你各種姿勢的最美Android開源日歷
- 評價:封裝很好的日歷控件
<五>項目
GeekNews
- 簡介:A pure reading App based on Material Design + MVP + RxJava2 + Retrofit + Dagger2 + Realm + Glide!
- GitHub地址:https://github.com/codeestX/GeekNews
- 評價:一個優(yōu)秀的代碼架構(gòu)項目