Android开源项目发现--- 工具类快速开发篇(持续更新)

1. Guava Google的基于java1.6的类库集合的扩展项目

包括collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O等等. 这些高质量的API可以使你的JAVa代码更加优雅,更加简洁
项目地址:https://code.google.com/p/guava-libraries/
文档介绍:https://code.google.com/p/guava-libraries/wiki/GuavaExplained

 

2. AndroidCommon Android公共库
项目地址:https://github.com/Trinea/AndroidCommon
Demo地址:https://play.google.com/store/apps/details?id=cn.trinea.android.demo
文档介绍:http://www.trinea.cn/?p=778
包括:(1)缓存(图片缓存、预取缓存、网络缓存)
(2) 公共View(下拉及底部加载更多ListView、底部加载更多ScrollView、滑动一页Gallery)
(3) Android常用工具类(网络、下载、Android资源操作、shell、文件、Json、随机数、Collection等等)


3.Afinal

Afinal是一个android的ioc,orm框架,内置了四大模块功能:FinalAcitivity,FinalBitmap,FinalDb,FinalHttp。通过finalActivity,我们可以通过注解的方式进行绑定ui和事件。通过finalBitmap,我们可以方便的加载bitmap图片,而无需考虑oom等问题。通过finalDB模块,我们一行代码就可以对android的sqlite数据库进行增删改查。通过FinalHttp模块,我们可以以ajax形式请求http数据

项目地址: https://github.com/yangfuhai/afinal

网站:http://www.afinal.org


4.EventBus greenrobot的开源项目

项目地址:https://github.com/greenrobot/EventBus

文档介绍:https://github.com/greenrobot/EventBus#general-usage-and-api

特点:(1) 支持在不同类型的线程中处理订阅,包括发布所在线程,UI线程、单一后台线程、异步线程

(2) 支持事件优先级定义,支持优先级高的订阅者取消事件继续传递,支持粘性事件,是不是跟系统的有序广播、粘性广播很像啊

(3) 不是基于annotations

(4) 性能更优

(5) 体积小

(6) 支持单例创建或创建多个对象

(7) 支持根据事件类型订阅


5.Otto Square的开源项目,基于Guava的Android优化

项目地址:https://github.com/square/otto

文档介绍:http://square.github.io/otto/

EventBus与Otto的功能及性能对比文档

EventBus与Otto性能对比Demo Apk


6.Android Priority Job Queue Android后台任务队列

项目地址:https://github.com/path/android-priority-jobqueue

文档介绍:https://github.com/path/android-priority-jobqueue#getting-started


7.wishlist 常用工具类


8.UnifiedPreference是一个用来简化Android Preference的第三方库,支持Android API Level 4+ , 对于平板和手机有很好的支持,在手机上用分块的方式来显示而在平板上会自动切换到用Fragment的方式显示。
项目地址:https://github.com/saik0/UnifiedPreference

文章讲解:http://blog.chengyunfeng.com/?p=478


9.shipfaster
整合了Dagger Otto Retrofit Robolectric Picasso OkHttp,方便快速开发
项目地址:https://github.com/pyricau/shipfaster


10.CleanAndroidCode
整合了Dagger Otto AndroidAnnotations,方便快速开发
项目地址:https://github.com/pyricau/CleanAndroidCode


11.xUtils
基于Afinal,包含DbUtils、ViewUtils、HttpUtils、BitmapUtils四大模块,可用于快速开发
项目地址:https://github.com/wyouflf/xUtils