图片和网络的第三方的地址汇总

来源:互联网 发布:淘宝炒作多久会消失 编辑:程序博客网 时间:2024/06/05 16:32

一、图片缓存
1. Android-Universal-Image-Loader
图片缓存,目前使用最广泛的图片缓存,支持主流图片缓存的绝大多数特性。
项目地址:https://github.com/nostra13/Android-Universal-Image-Loader
原理剖析文档:Android-Universal-Image-Loader
Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/universal-imageloader-demo.apk?raw=true
文档介绍:http://www.intexsoft.com/blog/item/74-universal-image-loader-part-3.html
2. picasso
square 开源的图片缓存
项目地址:https://github.com/square/picasso
文档介绍:http://square.github.io/picasso/
特点:(1)可以自动检测 adapter 的重用并取消之前的下载
(2)图片变换
(3)可以加载本地资源
(4)可以设置占位资源
(5)支持 debug 模式
3. Cube ImageLoader
阿里巴巴一淘使用的图片加载,综合了 Android-Universal-Image-Loader 和 square 等组件优点,简单易用,良好的中文文档支持
项目地址:https://github.com/etao-open-source/cube-sdk
Demo 地址:https://github.com/liaohuqiu/cube-sdk/raw/master/cube-sdk-sample.apk
文档介绍:http://cube-sdk.liaohuqiu.net/

  1. fresco
    一款强大的图片缓存工具,由 Facebook 开发
    项目地址:https://github.com/facebook/fresco
    文档介绍:http://frescolib.org/
    特点:(1) 两个内存缓存加上磁盘缓存构成了三级缓存
    (2) 支持流式,可以类似网页上模糊渐进式显示图片
    (3) 对多帧动画图片支持更好,如 Gif、WebP
    (4) 更多样的显示,如圆角、进度条、点击重试、自定义对焦点
    (5) 更多样的加载,如支持 EXIF、全面支持 WebP
    (6) 支持 Android 2.3+

  2. Glide
    Glide 是一个 android 平台上的快速和高效的开源的多媒体资源管理库,提供 多媒体文件的压缩,内存和磁盘缓存, 资源池的接口。
    它可以最大性能地在 Android 设备上读取、解码、显示图片和视频。Glide 可以将远程的图片、视频、动画图片等缓存在设备本地便于提高用户浏览图片的流畅体验。
    项目地址:https://github.com/bumptech/glide
    特点:
    (1) GIF 动画的解码
    (2) 本地视频剧照的解码
    (3) 支持缩略图
    (4) Activity 生命周期的集成
    (5) 转码的支持
    (6) 动画的支持
    (7) OkHttp 和 Volley 的支持

二、网络请求
1. Volley
Google 提供的网络通信库,使得网络请求更简单、更快速
项目地址:https://android.googlesource.com/platform/frameworks/volley
文档介绍:http://commondatastorage.googleapis.com/io-2013/presentations/110%20-%20Volley-%20Easy,%20Fast%20Networking%20for%20Android.pdf
2. Asynchronous Http Client for Android
Android 异步 Http 请求
项目地址:https://github.com/loopj/android-async-http
文档介绍:http://loopj.com/android-async-http/
特点:(1) 在匿名回调中处理请求结果
(2) 在 UI 线程外进行 http 请求
(3) 文件断点上传
(4) 智能重试
(5) 默认 gzip 压缩
(6) 支持解析成 Json 格式
(7) 可将 Cookies 持久化到 SharedPreferences
3. android-query
异步加载,更少代码完成 Android 加载
项目地址:https://github.com/androidquery/androidquery 或 https://code.google.com/p/android-query/
Demo 地址:https://play.google.com/store/apps/details?id=com.androidquery
文档介绍:https://code.google.com/p/android-query/#Why_AQuery?
特点:https://code.google.com/p/android-query/#Why_AQuery?
4. Async Http Client
Java 异步 Http 请求
项目地址:https://github.com/AsyncHttpClient/async-http-client
文档介绍:http://sonatype.github.io/async-http-client/
5. Ion
支持图片、json、http post 等异步请求
项目地址:https://github.com/koush/ion
文档介绍:https://github.com/koush/ion#more-examples
6. Http Request
项目地址:https://github.com/kevinsawicki/http-request
文档介绍:https://github.com/kevinsawicki/http-request#examples
7. okhttp
square 开源的 http 工具类
项目地址:https://github.com/square/okhttp
文档介绍:http://square.github.io/okhttp/
特点:(1) 支持 SPDY( http://zh.wikipedia.org/wiki/SPDY )协议。SPDY 协议是 Google 开发的基于传输控制协议的应用层协议,通过压缩,多路复用(一个 TCP 链接传送网页和图片等资源)和优先级来缩短加载时间。
(2) 如果 SPDY 不可用,利用连接池减少请求延迟
(3) Gzip 压缩
(4) Response 缓存减少不必要的请求
8. Retrofit
RESTFUL API 设计
项目地址:https://github.com/square/retrofit
文档介绍:http://square.github.io/retrofit/
9. RoboSpice
Android 异步网络请求工具,支持缓存、REST 等等
项目地址:https://github.com/stephanenicolas/robospice
Demo 地址:https://github.com/stephanenicolas/RoboDemo/downloads
10. TwistVolley
TwistVolley 是对 Volley 的一个封装库。提供类似 Picasso 一样的串联式 API。使得使用 Volley 更加方便。
项目地址:https://github.com/TwistedEquations/TwistVolley
11. OkHttpFinal
一个对OkHttp封装的简单易用型HTTP请求和文件下载管理框架
项目地址:https://github.com/pengjianbo/OkHttpFinal
Demo 地址:https://github.com/pengjianbo/OkHttpFinal

0 0
原创粉丝点击