Github开源Android资源整理(九)公共库,高版本向低版本兼容,多媒体相关,事件总线(订阅者模式),传感器
来源:互联网 发布:cms 上海交通大学 编辑:程序博客网 时间:2024/06/06 03:59
五、Android公共库
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/GuavaExplainedVolley
Google提供的网络通信库,使得网络请求更简单、更快速
项目地址:https://android.googlesource.com/platform/frameworks/volley
Github地址:https://github.com/mcxiaoke/android-volley
文档地址:http://commondatastorage.googleapis.com/io-2013/presentations/110%20-%20Volley-%20Easy,%20Fast%20Networking%20for%20Android.pdfAndroidCommon
Android公共库
项目地址:https://github.com/Trinea/AndroidCommon
Demo地址:https://play.google.com/store/apps/details?id=cn.trinea.android.demo
文档介绍:http://www.trinea.cn/android/android-common-lib/
包括:(1)缓存(图片缓存、预取缓存、网络缓存)
(2) 公共View(下拉及底部加载更多ListView、底部加载更多ScrollView、滑动一页Gallery)
(3) Android常用工具类(网络、下载、Android资源操作、shell、文件、Json、随机数、Collection等等)shipfaster
整合了Dagger Otto Retrofit Robolectric Picasso OkHttp,方便快速开发
项目地址:https://github.com/pyricau/shipfasterCleanAndroidCode
整合了Dagger Otto AndroidAnnotations,方便快速开发
项目地址:https://github.com/pyricau/CleanAndroidCodexUtils
基于Afinal,包含DbUtils、ViewUtils、HttpUtils、BitmapUtils四大模块,可用于快速开发
项目地址:https://github.com/wyouflf/xUtilsAfinal
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
六、Android 高版本向低版本兼容
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都在用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/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.htmlSherlockNavigationDrawer
将Android NavigationDrawer和ActionbarSherlock结合,解决4.0以下NavigationDrawer的适配问题
项目地址:https://github.com/tobykurien/SherlockNavigationDrawer
文档地址:http://developer.android.com/training/implementing-navigation/nav-drawer.htmlNotifications4EveryWhere
将Android 4.1的Notification兼容到Android2.2++
项目地址:https://github.com/youxiachai/Notifications4EveryWhereAndroid Switch Widget Backport
将Android Switch和SwitchPreference的兼容到Android2.1++
项目地址:https://github.com/BoD/android-switch-backport
Demo地址:https://play.google.com/store/apps/details?id=org.jraf.android.backport.switchwidget.sample
文档介绍:https://github.com/BoD/android-switch-backport#using-the-switchandroid-datepicker
将Android 4.0的datepicker兼容到Android2.2++
项目地址:https://github.com/SimonVT/android-datepickerGlowPadBackport
Android 4.2的GlowPadView向后适配到API4以上
项目地址:https://github.com/frakbot/GlowPadBackportTransitions Everywhere
Android 4.4 的 Transitions API 兼容到 Android 2.2 以上
项目地址:https://github.com/andkulikov/transitions-everywhere
七、多媒体相关
cocos2d-x
跨平台的2d游戏框架,支持Android、IOS、Linux、Windows等众多平台
项目地址:https://github.com/cocos2d/cocos2d-x
文档介绍:http://www.cocos2d-x.org/wiki
官方网站:http://www.cocos2d-x.org/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)等常见的多种视频流媒体协议,包括点播与直播。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=trueAndroid 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#usageBitmap Smart Clipping using OpenCV
图片智能裁剪保留重要部分显示
项目地址:https://github.com/beartung/tclip-android
利用淘宝的 http://code.taobao.org/p/tclip/ 库完成
一淘玩客正在使用的图片裁剪,自动识别图片中的重要区域,并且在图片裁剪时保留重要区域
特点:(1). 能进行人脸识别。图片中有人脸,将自动视为人脸区域为重要区域,将不会被裁剪掉
(2).自动其它重要区域。如果图片中未识别出人脸,则会根据特征分布计算出重区域Cropper
图片局部剪切工具,可触摸控制选择区域或旋转
项目地址:https://github.com/edmodo/cropper
使用介绍:https://github.com/edmodo/cropper/wiki
效果图:android-crop
图片裁剪Activity
项目地址:https://github.com/jdamcd/android-crop
效果图:TileView
可分块显示大图,支持2D拖动、双击、双指放大、双指捏合
项目地址:https://github.com/moagrius/TileView
Demo地址:http://moagrius.github.io/TileView/TileViewDemo.apkBlurEffectForAndroidDesign
图片模糊效果
项目地址:https://github.com/PomepuyN/BlurEffectForAndroidDesignandroid-eye
PC端网页查看同一局域网内的手机摄像头内容,可以用来监控哦
项目地址:https://github.com/Teaonly/android-eye
Demo地址:https://play.google.com/store/apps/details?id=teaonly.droideyelibpng for Android
PNG图片的jni库,支持几乎png的所有特性
项目地址:https://github.com/julienr/libpng-android
文档地址:http://www.libpng.org/pub/png/libpng.htmlandroid-gpuimage
基于GPU的图片滤镜
项目地址:https://github.com/CyberAgent/android-gpuimageAndroidFaceCropper
图片脸部自动识别,将识别后的局部图片返回
项目地址:https://github.com/lafosca/AndroidFaceCropperAndroid Video Crop
利用TextureView播放和剪切视频,类似ImageView.setScaleType
项目地址:https://github.com/dmytrodanylyk/android-video-crop
Demo地址:https://github.com/lafosca/AndroidFaceCropper/releases/download/1.0/FaceCropper-sample-debug-unaligned.apksvg-android
Android Svg矢量图形支持
项目地址:https://github.com/japgolly/svg-android https://github.com/japgolly/svg-androidAndroid Visualizer
从Android MediaPlayer获得音频,然后像iTunes及WinAmp一样展示音轨
项目地址:https://github.com/felixpalmer/android-visualizerExoPlayer
包括仪表板和SmoothStreaming自适应回放,缓存持久化和自定义渲染器,方便自定义和扩展,并且可以通过应用商店更新
项目地址:https://github.com/google/ExoPlayerDanmakuFlameMaster
android上开源弹幕解析绘制引擎项目
项目地址:https://github.com/ctiao/DanmakuFlameMaster
八、事件总线(订阅者模式)
通过发布/订阅事件解耦事件发送和接受,从而简化应用程序组件(Activities, Fragments及后台线程)之间的通信
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) 支持根据事件类型订阅Otto
Square的开源项目,基于Guava的Android优化
项目地址:https://github.com/square/otto
文档介绍:http://square.github.io/otto/
EventBus与Otto的功能及性能对比文档
EventBus与Otto性能对比Demo Apk
九、传感器
Great Android Sensing Toolkit
Android感应器工具包,包含示例及使用过程中可能需要的算法
项目地址:https://github.com/gast-lib/gast-lib
Demo地址:https://play.google.com/store/apps/details?id=root.gast.playground
文档介绍:https://github.com/gast-lib/gast-lib#documentationSensorManager
Android传感器管理
项目地址:https://github.com/nlathia/SensorManager
文档介绍:https://docs.google.com/document/d/1TqThJULb-4e6TGb1gdkAaPCfyuXStjJpbnt7a0OZ9OE/editGPSLogger
记录GPS信息
项目地址:https://github.com/mendhak/gpslogger
Demo地址:https://play.google.com/store/apps/details?id=com.mendhak.gpslogger
文档介绍:http://code.mendhak.com/gpslogger/Pedometer
计步器,使用硬件计步感应器
项目地址:https://github.com/j4velin/Pedometerleapcast
ChromeCast模拟器的App
项目地址:https://github.com/dz0ny/leapcastArduino-Communicator
与Arduino通信的App
项目地址:https://github.com/jeppsson/Arduino-Communicatorandroid-pedometer
Android计步器
项目地址:https://github.com/bagilevi/android-pedometer
Demo地址:http://pedometer.googlecode.com/files/Pedometer-1.4.apkOwnTracks for Android
自己的轨迹记录
项目地址:https://github.com/owntracks/androidShake Detector library for Android
Android手机震动摇晃检测库,提供供UI线程调用的回调接口
项目地址:https://github.com/tbouron/ShakeDetector
Demo地址:https://play.google.com/store/apps/details?id=com.github.tbouron.shakedetector.exampleAndroid heart rate monitor
Android心跳检测
项目地址:https://github.com/phishman3579/android-heart-rate-monitorBluetooth LE Library for Android
蓝牙源信息,包括宝库Mac、更新时间、RSSI、UUID、信号源距离、影响范围等信息
项目地址:https://github.com/alt236/Bluetooth-LE-Library---Android
Demo地址:https://play.google.com/store/apps/details?id=uk.co.alt236.btlescanfarebot
通过NFC 从公交卡中读取数据的一个应用
项目地址:https://github.com/codebutler/farebot
- Github开源Android资源整理(九)公共库,高版本向低版本兼容,多媒体相关,事件总线(订阅者模式),传感器
- Github开源Android资源整理(九)公共库,高版本向低版本兼容,多媒体相关,事件总线(订阅者模式),传感器
- Android 开源项目android-open-project工具库解析之(二) 高版本向低版本兼容,多媒体相关,事件总线(订阅者模式),传感器,安全,插件化,文件
- SQLServer2012转2008(高版本向低版本兼容)
- android版本兼容,高版本低版本兼容性
- 低版本编译兼容高版本版本
- 低版本在在高版本中运行 ------ (高版本兼容低版本)
- 低版本在在高版本中运行 ------ (高版本兼容低版本)
- IE高版本兼容低版本
- Android 应用程序向低版本兼容的问题
- android api实现高斯模糊,且兼容低版本
- android api实现高斯模糊,且兼容低版本
- Android 实现高斯模糊效果及低版本兼容
- android api实现高斯模糊,且兼容低版本
- Android 实现高斯模糊效果及低版本兼容
- Android 实现高斯模糊效果及低版本兼容
- Android 实现高斯模糊效果及低版本兼容
- android兼容低版本Fragment
- Objective-c 官方文档翻译Block
- linux总线驱动之DMA传输
- php----4 文件的上传和下载
- JAVA代码规范
- C++ 线性表顺序存储结构
- Github开源Android资源整理(九)公共库,高版本向低版本兼容,多媒体相关,事件总线(订阅者模式),传感器
- OC学习篇之---类的三大特性(封装,继承,多态)
- mysql cursor游标的使用,实例
- 支持不同的版本
- UVa 10417 - Gift Exchanging
- 1008. 数组元素循环右移问题 (20)
- iOS框架介绍——A字头
- 查看linux系统已运行时间;当前用户个数;系统负载情况
- ASP.NET中实体数据库模型的增删改查的用法。