一、依赖注入DI

通过依赖注入降低View、服务、资源简化初始化,事件绑定等反复繁琐工作

1. AndroidAnnotations(Code Diet) android高速开发框架

项目地址:https://github.com/excilys/androidannotations

文档介绍:https://github.com/excilys/androidannotations/wiki

官方站点:http://androidannotations.org/

特点:(1)依赖注入:包含view,extras,系统服务,资源等等

(2)简单的线程模型,通过annotation表示方法执行在ui线程还是后台线程

(3)事件绑定:通过annotation表示view的响应事件,不用在写内部类

(4)RESTclient:定义client接口,自己主动生成REST请求的实现

(5)没有你想象的复杂:AndroidAnnotations仅仅是在在编译时生成对应子类

(6)不影响应用性能:仅50kb,在编译时完毕,不会对执行时有性能影响。

PS:与roboguice的比較:roboguice通过执行时读取annotations进行反射,所以可能影响应用性能,而AndroidAnnotations在编译时生成子类,所以对性能没有影响

2. roboguice 帮你处理了非常多代码异常,利用annotation使得更少的代码完毕项目

项目地址:https://github.com/roboguice/roboguice

文档介绍:https://github.com/roboguice/roboguice/wiki

3. butterknife 利用annotation帮你高速完毕View的初始化,降低代码

项目地址:https://github.com/JakeWharton/butterknife

文档介绍:http://jakewharton.github.io/butterknife/

4. Dagger 依赖注入,适用于Android和Java

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

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

二、图片缓存

1. Android-Universal-Image-Loader 图片缓存

眼下使用最广泛的图片缓存,支持主流图片缓存的绝大多数特性。

项目地址:https://github.com/nostra13/Android-Universal-Image-Loader

Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/universal-imageloader-demo.apk?raw=true

文档介绍:http://www.intexsoft.com/blog/item/74-universal-image-loader-part-3.html

2. picasso square开源的图片缓存

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

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

特点:(1)能够自己主动检測adapter的重用并取消之前的下载

(2)图片变换

(3)能够载入本地资源

(4)能够设置占位资源

(5)支持debug模式

3. ImageCache 图片缓存,包括内存和Sdcard缓存

项目地址:https://github.com/Trinea/AndroidCommon

Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/TrineaAndroidDemo.apk?raw=true

文档介绍:http://www.trinea.cn/?p=704

特点:(1)支持预取新图片,支持等待队列

(2)包括二级缓存,可自己定义文件名称保存规则

(3)可选择多种缓存算法(FIFO、LIFO、LRU、MRU、LFU、MFU等13种)或自己定义缓存算法

(4)可方便的保存及初始化恢复数据

(5)支持不同类型网络处理

(6)可依据系统配置初始化缓存等

三、网络相关

1. Asynchronous Http Client for Android Android异步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

2. android-query 异步载入,更少代码完毕Android载入

项目地址:https://github.com/androidquery/androidqueryhttps://code.google.com/p/android-query/

文档介绍:https://code.google.com/p/android-query/#Why_AQuery?

Demo地址:https://play.google.com/store/apps/details?id=com.androidquery

特点:https://code.google.com/p/android-query/#Why_AQuery?

3. Async Http Client Java异步Http请求

项目地址:https://github.com/AsyncHttpClient/async-http-client

文档介绍:http://sonatype.github.io/async-http-client/

4. Ion 支持图片、json、http post等异步请求

项目地址:https://github.com/koush/ion

文档介绍:https://github.com/koush/ion#more-examples

5. HttpCache Http缓存

项目地址:https://github.com/Trinea/AndroidCommon

Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/TrineaAndroidDemo.apk?raw=true

Demo代码:https://github.com/Trinea/AndroidDemo/blob/master/src/cn/trinea/android/demo/HttpCacheDemo.java

特点是:(1) 依据cache-control、expires缓存http请求

(2) 支持同步、异步Http请求

(3) 在匿名回调中处理请求结果

(4) 在UI线程外进行http请求

(5) 默认gzip压缩

6. Http Request

项目地址:https://github.com/kevinsawicki/http-request

文档介绍:https://github.com/kevinsawicki/http-request#examples

7. okhttp square开源的http工具类

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

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

特点:(1) 支持SPDY(http://zh.wikipedia.org/wiki/SPDY)协议。SPDY协议是Google开发的基于传输控制协议的应用层协议,通过压缩,多路复用(一个TCP链接传送网页和图片等资源)和优先级来缩短载入时间。

(2) 假设SPDY不可用,利用连接池降低请求延迟

(3) Gzip压缩

(4) Response缓存降低不必要的请求

8. Retrofit RESTFUL API设计

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

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

四、数据库 orm工具包

orm的db工具类,简化建表、查询、更新、插入、事务、索引的操作

1. greenDAO Android Sqlite orm的db工具类

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

文档介绍:http://greendao-orm.com/documentation/

官方站点:http://greendao-orm.com/

特点:(1)性能佳

(2) 简单易用的API

(3) 内存小好小

(4) 库大小小

2. ActiveAndroid Android Sqlite orm的db工具类

项目地址:https://github.com/pardom/ActiveAndroid

文档介绍:https://github.com/pardom/ActiveAndroid/wiki/_pages

3. Sprinkles Android Sqlite orm的db工具类

项目地址:https://github.com/emilsjolander/sprinkles

文档介绍:http://emilsjolander.github.io/blog/2013/12/18/android-with-sprinkles/

特点:比較显著的特点就是配合https://github.com/square/retrofit能保存从server获取的数据

五、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://github.com/Trinea/TrineaDownload/blob/master/TrineaAndroidDemo.apk?raw=true

文档介绍:http://www.trinea.cn/?p=778

包含:(1)缓存(图片缓存、预取缓存、网络缓存)

(2) 公共View(下拉及底部载入很多其它ListView、底部载入很多其它ScrollView、滑动一页Gallery)

(3) Android经常使用工具类(网络、下载、Android资源操作、shell、文件、Json、随机数、Collection等等)

六、Android 高版本号向低版本号兼容

1. ActionBarSherlock 为Android全部版本号提供统一的ActionBar,解决4.0下面ActionBar的适配问题


项目地址:https://github.com/JakeWharton/ActionBarSherlock

Demo地址:https://play.google.com/store/apps/details?id=com.actionbarsherlock.sample.demos

APP演示样例:太多了。。如今连google都在用

2. Nine Old Androids 将Android 3.0(Honeycomb)全部动画API(ObjectAnimator ValueAnimator等)兼容到Android1.0

项目地址:https://github.com/JakeWharton/NineOldAndroids

Demo地址:https://play.google.com/store/apps/details?id=com.jakewharton.nineoldandroids.sample

文档介绍:http://nineoldandroids.com/

3. HoloEverywhere 将Android 3.0的Holo主题兼容到Android2.1++

项目地址:https://github.com/Prototik/HoloEverywhere

Demo地址:https://raw.github.com/Prototik/HoloEverywhere/repo/org/holoeverywhere/demo/2.1.0/demo-2.1.0.apk

文档介绍:http://android-developers.blogspot.com/2012/01/holo-everywhere.html

七、多媒体相关

1. cocos2d-x 跨平台的2d游戏框架,支持Android、IOS、Linux、Windows等众多平台


项目地址:https://github.com/cocos2d/cocos2d-x

文档介绍:http://www.cocos2d-x.org/wiki

官方站点:http://www.cocos2d-x.org/

2. Vitamio 是一款Android与iOS平台上的全能多媒体开发框架

项目地址:https://github.com/yixia/VitamioBundle

站点介绍:http://www.vitamio.org/docs/

特点:(1) 全面支持硬件解码与GPU渲染

(2) 可以流畅播放720P甚至1080P高清MKV,FLV,MP4,MOV,TS,RMVB等常见格式的视频

(3) 在Android与iOS上跨平台支持 MMS, RTSP, RTMP, HLS(m3u8)等常见的多种视频流媒体协议,包含点播与直播。

3. PhotoProcessing 利用ndk处理图片库,支持Instafix、Ansel、Testino、XPro、Retro、BW、Sepia、Cyano、Georgia、Sahara、HDR、Rotate、Flip

项目地址:https://github.com/lightbox/PhotoProcessing

Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/photo-processing.apk?raw=true

4. Android StackBlur 图片模糊效果工具类

项目地址:https://github.com/kikoso/android-stackblur

Demo地址:https://github.com/kikoso/android-stackblur/blob/master/StackBlurDemo/bin/StackBlurDemo.apk?raw=true

文档介绍:https://github.com/kikoso/android-stackblur#usage

八、其它

1. Salvage view 带View缓存的Viewpager PagerAdapter,非常方便使用


项目地址:https://github.com/JakeWharton/salvage

2. Android-PasscodeLock 应用锁,每次启动或从不论什么Activity启动应用都须要输入四位数字的password方可进入

项目地址:https://github.com/wordpress-mobile/Android-PasscodeLock

Demo地址:https://play.google.com/store/apps/details?id=com.sothree.umano

APP演示样例:Wordpress Android,支付宝,挖財

3. android-lockpattern Android的图案password解锁

项目地址:https://code.google.com/p/android-lockpattern/

Demo地址:https://play.google.com/store/apps/details?id=group.pals.android.lib.ui.lockpattern.demo

使用介绍:https://code.google.com/p/android-lockpattern/wiki/QuickUse

演示样例APP:Android开机的图案password解锁,支付宝的password解锁

4. GlowPadBackport将Android4.2的锁屏界面解锁扩展到Android1.6及1.6+

项目地址:https://github.com/rock3r/GlowPadBackport

Demo地址:https://play.google.com/store/apps/details?id=net.sebastianopoggi.samples.ui.GlowPadSample

效果图:https://lh6.ggpht.com/U070b6Lh6cVsVwx4jN-5nq0xqiB1PBzrYABPeJIEe2hZQ5UWOxc-FDUG77wADelToHA=h310-rw

5. GlowPadView Android4锁屏界面解锁

项目地址:https://github.com/nadavfima/GlowPadView

效果图:https://raw.github.com/nadavfima/GlowPadView/master/example.png

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

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

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

7. jsoup 一个解析html的java库,可方便的提取和操作数据

项目地址:https://github.com/jhy/jsoup

官方站点:http://jsoup.org/

作用:(1) 从一个url、文件或string获得html并解析

(2) 利用dom遍历或css选择器查找、提取数据

(3) 操作html元素

(4) 依据白名单去除用于提交的非法数据防止xss攻击

(5) 输出整齐的html

8.ZIP java压缩和解压库

项目地址:https://github.com/zeroturnaround/zt-zip

文档介绍:https://github.com/zeroturnaround/zt-zip#examples

作用:(1) 解压和压缩,并支持目录内递归操作

(2) 支持包括和排除某些元素

(3) 支持重命名元素

(4) 支持遍历zip包内容

(5) 比較两个zip包等功能

9. Cobub Razor 开源的mobile行为分析系统,包含web端、android端,支持ios和window phone

项目地址:https://github.com/cobub/razor

Demo地址:http://demo.cobub.com/razor

站点介绍:http://dev.cobub.com/

10. aFileChooser 文件选择器,可内嵌到程序中,而无需使用系统或三方文件选择器。

项目地址:https://github.com/iPaulPro/aFileChooser

11. androidpn 基于xmpp协议的消息推送解决方式,包含server端和android端。

项目地址:https://github.com/dannytiehui/androidpn

12. Android插件式开发

项目地址:https://github.com/umeng/apf

Android开源工具库的更多相关文章

  1. Android开源工具项目集合

    最近因为要去外派了,工欲善其事,必先利其器!所以又回顾了一下自己github上所收藏的项目,也算是温故而知新吧. 最流行的Android组件大全 http://www.open-open.com/li ...

  2. Android开源图表库介绍

    XCL-Charts XCL-Charts V1.8     Android开源图表库(XCL-Charts is a free charting library for Android platfo ...

  3. 我的Android进阶之旅------>【强力推荐】Android开源图表库XCL-Charts版本发布及展示页

    因为要做图表相关的应用,后来百度发现了一个很好的Android开源图表库(XCL-Charts is a free charting library for Android platform.) 下面 ...

  4. Android开源图表库XCL-Charts版本号公布及展示页

    XCL-Charts V2.1 Android开源图表库(XCL-Charts is a free charting library for Android platform.) XCL-Charts ...

  5. Android 绘图工具库AChartEngine

    From: http://www.oschina.net/p/achartengine AChartEngine是为android应用而设计的绘图工具库.目前该库的最新稳定版本是0.7,支持绘制以下类 ...

  6. android 开源图表库MPChart最简单使用方法示例教程Demo--折线图 柱状图

    转载请注明本文出处:http://blog.csdn.net/wingichoy/article/details/50428246 MPChart是android上一款强大的图表开源库,他可以轻松的绘 ...

  7. Android开源界面库--ResideMenu用法

    网上关于ResideMenu用法的教程很多,但基本上全是从Github上copy下来的,Gitbub上给出的了对应的demo,但是由于我的IDE原因吧,demo一直导入不成功.为此自己又捣鼓了一翻,终 ...

  8. android开源图表库MPAndroidChart(曲线图、直方图、饼状图)

    github地址:https://github.com/PhilJay/MPAndroidChart 添加依赖: Add the following to your project level bui ...

  9. Android开源日志库Logger的使用

    https://blog.csdn.net/Power_Qyh/article/details/78159598?locationNum=2&fps=1 https://github.com/ ...

随机推荐

  1. Python安装模块出错(ImportError: No module named setuptools)解决方法

    原地址:http://www.cnblogs.com/BeginMan/archive/2013/05/28/3104928.html 在window平台下安装第三方模块时,出现这样的错误:

  2. Datadog Agent是啥?它消耗什么资源?

    在资本市场不那么喜人的 2015 年融资 9450 万美元的 Datadog,在运维圈刮起了一阵小旋风.作为国外很值得学习的一款平台监控产品,公司人数不足 100 的 Datadog 为什么吸引了投资 ...

  3. SPRING IN ACTION 第4版笔记-第五章BUILDING SPRING WEB APPLICATIONS-002-Controller的requestMapping、model

    一.RequestMapping 1.可以写在方法上或类上,且值可以是数组 package spittr.web; import static org.springframework.web.bind ...

  4. C语言考试第一题详细过程

    1.计算 ,并输出其结果. 思路是先设计一个函数计算阶乘,再用循环,逐个求和. #include<stdio.h> int mul(int n) { int num,i; num=; ;i ...

  5. Yii 实现restful

    首先做一下接口的 URL 规划,假设我们要面对的资源是 item ,现在我们暴露5个接口供其他应用调用,分别是: 对于所有 item 列表调用: GET /rest/item 对于某个 item 信息 ...

  6. [CF 191C]Fools and Roads[LCA Tarjan算法][LCA 与 RMQ问题的转化][LCA ST算法]

    参考: 1. 郭华阳 - 算法合集之<RMQ与LCA问题>. 讲得很清楚! 2. http://www.cnblogs.com/lazycal/archive/2012/08/11/263 ...

  7. hihocoder #1289 : 403 Forbidden (2016 微软编程笔试第二题)

    #1289 : 403 Forbidden 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 Little Hi runs a web server. Sometimes ...

  8. poj3140Contestants Division

    链接 这叫树形DP吗..?断开某条边 求剩下两颗树数权值和的差最小 dfs一遍 枚举边 查了n久 wa n次  dp数组没初始化.. 在poj上1A感觉应该挺爽 #include <iostre ...

  9. 登陆与注册以及Session

    Session  保存状态是在 登陆窗口  检查用户密码的动作上执行 .Models namespace 注册与登陆以及Session.Models { public class UserBF { p ...

  10. easyui 中的treegrid添加checkbox

    <script type="text/javascript"> function show(checkid){ var s = '#check_'+checkid; / ...