Android之常用框架简单说明

数据库框架

SQLiteOpenHelper

· 特点:Android自带

· SQLiteOpenHelper类(抽象类),需要创建类继承。

· SQLiteOpenHelper类中有两个抽象方法需要重写:onCreate()\onUpgrade()

· SQLiteOpenHelper2个重要的实例方法:getReadableDatabase()\getWritableDatabase()

· 数据库文件会存放在:/data/data/<package name>/databases/目录下

LitePal· 特点:利用反射机制的ORM(对象关系映射)模式,效率相对不高,但使用简单
Realm

· GitHub地址:https://github.com/realm/realm-java

· 特点:不基于SQLite、快速、跨平台(iOS\OS X\Android)、面向对象驱动非关系驱动、是MVCC数据库

GreenDao

· GitHub地址:https://github.com/greenrobot/greenDAO

· 特点:可加密、轻量型(<150K)、快速、使用简单

DBFlow

· GitHub地址:https://github.com/Raizlabs/DBFlow

· 特点:基于SQLite、快速、功能强大、高性能

JSON解析框架
Gson· 特点:Google出品,目前最多人用、轻量(227K)、效率高
FastJson· 特点:阿里出品、快速、轻量(196K)、易用、FastJson对bean有要求,必须要有默认的构造函数。
Jackson· 特点:jar包超过1M,不算轻量
网络框架
OkHttp

· GitHub地址:https://github.com/square/okhttp

· 特点:高性能,适合大量且复杂数据通讯

Volley· 特点:Google出品、易用、基于网络队列,适合小数据频繁通讯
Rerofit

· GitHub地址:https://github.com/square/retrofit

· 特点:基于OkHttp做的封装

依赖注入(帮助我们分离模块,降低耦合、提高可测试性)
Butterknife

· GitHub地址:https://github.com/JakeWharton/butterknife

· 特点:依赖注入

Dagger2

· GitHub地址:https://github.com/google/dagger

· 特点:

AndroidAnotations

· GitHub地址:https://github.com/androidannotations/androidannotations

· 特点:

RoboGuice

· GitHub地址:https://github.com/roboguice/roboguice

· 特点:

图片加载框架
Android-Universal-ImageLoader

· GitHub地址:https://github.com/nostra13/Android-Universal-Image-Loader

· 特点:支持下载进度监听、

Picasso

· GitHub地址:https://github.com/square/picasso

· 特点:

Glide

· GitHub地址:https://github.com/bumptech/glide

· 特点:支持Okhttp、Volley

Fresco

· GitHub地址:https://github.com/facebook/fresco

· 特点:

内存优化框架

LeakCanary

· GitHub地址:https://github.com/square/leakcanary

· 特点:发现内存泄漏

ACRA

· GitHub地址:https://github.com/ACRA/acra

· 特点:奔溃信息收集

事件总线框架
EventBus

· GitHub地址:https://github.com/greenrobot/EventBus

· 特点:简化Activities, Fragments, Threads, Services之间的通讯。

Otto

· GitHub地址:https://github.com/square/otto

· 特点: 是square的一个开源框架;

其它框架

MPAndroidChart

· GitHub地址:https://github.com/PhilJay/MPAndroidChart

· 特点:十分强大的图表框架

Agrea

· GitHub地址:https://github.com/google/agera

· 特点:响应式编程框架;谷歌官方的轻量安卓库

tinker

· GitHub地址:https://github.com/BuglyDevTeam/Bugly-Android-Demo

· 特点:热修复

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值