Android常用框架

来源:互联网 发布:暗黑破坏神2修改器mac 编辑:程序博客网 时间:2024/06/05 18:35

欢迎访问我的个人博客网站:http://www.yanmin99.com/

一、工具框架

  • RxAndroid
    • 对RxJava在Android上的扩展,使得Android上也很容易实现reactive components,简化线程操作,从而写出很漂亮的代码。
    • 项目地址:https://github.com/ReactiveX/RxAndroid
    • 文档介绍:给Android 开发者的 RxJava 详解
  • shipfaster
    • 整合了 Dagger Otto Retrofit Robolectric Picasso OkHttp,方便快速开发
    • 项目地址:https://github.com/pyricau/shipfaster
    • #### 二、ORM框架
  • greenDAO
    • Android Sqlite orm 的 db 工具类
    • 项目地址:https://github.com/greenrobot/greenDAO
    • 文档介绍:http://greendao-orm.com/documentation/
    • *
  • ActiveAndroid
    • Android Sqlite orm 的 db 工具类
    • 项目地址:https://github.com/pardom/ActiveAndroid
    • 文档介绍:https://github.com/pardom/ActiveAndroid/wiki/_pages
    • #### 三、网络框架
  • Volley
    • Google 提供的网络通信库,使得网络请求更简单、更快速
    • 项目地址:https://android.googlesource.com/platform/frameworks/volley
    • *
  • android-async-http
    • Android 异步 Http 请求
    • 项目地址:https://github.com/loopj/android-async-http
    • 文档介绍:http://loopj.com/android-async-http/
  • async-http-client
    • Java 异步 Http 请求
    • 项目地址:https://github.com/AsyncHttpClient/async-http-client
    • 文档介绍:http://sonatype.github.io/async-http-client/
  • okhttp
    • square 开源的 http 工具类
    • 项目地址:https://github.com/square/okhttp
    • 文档介绍:http://square.github.io/okhttp/
  • retrofit
    • RESTFUL API 设计
    • 项目地址:https://github.com/square/retrofit
    • 文档介绍:http://square.github.io/retrofit/

四、图片缓存

  • Android-Universal-Image-Loader
    • 图片缓存,目前使用最广泛的图片缓存,支持主流图片缓存的绝大多数特性。
    • 项目地址:https://github.com/nostra13/Android-Universal-Image-Loader
    • 原理剖析文档:Android-Universal-Image-Loader
  • picasso
    • square 开源的图片缓存
    • 项目地址:https://github.com/square/picasso
    • 文档介绍:http://square.github.io/picasso/
  • fresco
    • 一款强大的图片缓存工具,由 Facebook 开发
    • 项目地址:https://github.com/facebook/fresco
    • 文档介绍:http://frescolib.org/

五、依赖注入

  • butterknife
    • 利用 annotation 帮你快速完成 View 的初始化,减少代码
    • 项目地址:https://github.com/JakeWharton/butterknife
    • 文档介绍:http://jakewharton.github.io/butterknife/
  • Dagger
    • 依赖注入,适用于 Android 和 Java
    • 项目地址:https://github.com/square/dagger
    • 原理剖析文档:Dagger
    • 文档介绍:http://square.github.io/dagger/

六、JSON解析

  • jackjson
  • gson
  • fastjson

七、事件总线(订阅者模式)

  • EventBus
    • greenrobot 的开源项目
    • 项目地址:https://github.com/greenrobot/EventBus
    • 原理剖析文档:EventBus
    • 文档介绍:https://github.com/greenrobot/EventBus#general-usage-and-api
  • Otto
    • Square 的开源项目,基于 Guava 的 Android 优化
    • 项目地址:https://github.com/square/otto
    • 文档介绍:http://square.github.io/otto/
原创粉丝点击