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做的封装


图片加载框架
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

· 特点:奔溃信息收集

   
   
   
   
   










猜你喜欢

转载自blog.csdn.net/amberoot/article/details/80447340
今日推荐