anroid 项目 框架选择

来源:互联网 发布:数据整理的意义不包括 编辑:程序博客网 时间:2024/06/05 06:12
  1. 现在很多人都比较喜欢的功能 注解来简化了代码,代替了很多繁琐的工作量,所以基本每个框架都是必有 注解功能的
  2. 事件总线方面的功能
    3.封装了大量的常见功能(比如:访问网络,缓存操作,图片处理,文件处理等等的)
    4.简单轻量支持注解自动建表的ORM框架 (这个可能相对用的不是特别多)

afinal xutils
这个大家都很熟悉了。也经常用

eventBus
事件总线管理框架
https://github.com/greenrobot/EventBus

LoonAndroid
https://github.com/gdpancheng/LoonAndroid
1自动注入框架(只需要继承框架内的application既可)
2图片加载框架(多重缓存,自动回收,最大限度保证内存的安全性)
3网络请求模块(继承了基本上现在所有的http请求)
4 eventbus(集成一个开源的框架)

andbase
https://github.com/zhaoqp2010/andbase

依赖注入框架浅析(没有采用反射,用到预编译)

Android Dagger (Dagger是构建在Android annotations)
http://square.github.io/dagger/

androidannotations
官网http://androidannotations.org/
https://github.com/excilys/androidannotations

网络框架
volley(纯网络框架,google推荐)
https://github.com/smanikandan14/Volley-demo

android-async-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

有听过有人说到过,反射浪费时间和资源,其实个人觉得还好了。如果真的纠结这点的话,
可以用Android Dagger 依赖注入

图片框架
也有好多好多看怎么选了,很多框架也都集成了
xutils 也已经自带了
universal-image-loader 等等

这里说下:
UrlImageViewHelper
他可以设定图片缓存的时间,对于特殊需求的小伙伴 就可以用这个了。
https://github.com/koush/UrlImageViewHelper

0 0
原创粉丝点击