---
title: "Mark！Android最佳的开源库集锦"
author: "Mr.Cheney"
date: "2016-11-08T22:44:18Z"
tags: []
categories: ["移动开发"]
slug: "mark-android"
draft: false
lastmod: "2016-11-08T22:44:18Z"
id: 2336181
url: "https://mr-cheney.iteye.com/blog/2336181"
---

转自：http://geek.csdn.net/news/detail/113690

 

工欲善其事，必先利其器。一个好的开发库可以快速提高开发者的工作效率，甚至让开发工作变得简单。本文收集了大量的Android开发库，快来切磋一下，到底哪一个最适合你。

动画

- [Android View Animations](https://github.com/daimajia/AndroidViewAnimations)：一个非常强大的开源动画库，开发者可以用来创建各种效果。
- [RecyclerView Animators](https://github.com/wasabeef/recyclerview-animators)：可实现RecyclerView动画。

APIs

- [CloudRail](https://cloudrail.com/)：可以将多个服务（例如Dropbox、Google Drive和OneDrive）捆绑成一个统一的API,帮助开发者快速地集成。此外，还可以处理API更新，保持代码一致。接口也可以用于云存储、社交、支付等等。
- [Retrofit](http://square.github.io/retrofit/)：Retrofit是Square公司开发的一款针对Android网络请求的框架，它将HTTP API封装成一个Java接口。

图表

- [MPAndroidChart](https://github.com/PhilJay/MPAndroidChart)：一款基于Android的开源图表库，MPAndroidChart不仅可以在Android设备上绘制各种统计图表，而且可以对图表进行拖动和缩放操作，应用起来非常灵活。
- [AndroidCharts](https://github.com/HackPlan/AndroidCharts)：一款易于使用的Android图表动画类库，包含曲线/折线图、饼图、时钟图、柱状图。

数据库

- [SQLBrite](https://github.com/square/sqlbrite)：是一个响应式数据库框架,可以完美解决数据库和UI的同步更新。
- [Sugar ORM](https://github.com/satyan/sugar)：无需编写SQL语句就可以轻易操作SQLite数据库。

数据结构

- [Eclipse Collections](https://www.eclipse.org/collections/)：Java集合框架，例如将迭代方法放在容器类型上。

日期&时间

- [TimesSquare for Android](https://github.com/square/android-times-square)：一款非常漂亮的日历控件。
- [Material Calendar View](https://github.com/prolificinteractive/material-calendarview)：一款Material Design风格的日历控件。

依赖关系

- [Dagger](https://github.com/square/dagger):可以在Android平台上快速进行依赖注入。

文件

- [Android-FilePicker](https://github.com/DroidNinja/Android-FilePicker)：一个phtoopicker,用于Android设备选择文件或者目录。
- [Material File Picker](https://github.com/nbsp-team/MaterialFilePicker)：一个Material design风格的文件选择工具。

函数式编程

- [Retrolambda](https://github.com/orfjackal/retrolambda)：可以在Android上使用Lambdas表达式。

手势

- [Sensey](https://github.com/nisrulz/Sensey)：可以在Android应用程序里面添加手势操作，使用简单。
- [Android 3D Touch – PeekView](https://github.com/klinker24/Android-3DTouch-PeekView)：可以在Android平台上实现类似iOS上面的3D Touch功能。

蓝牙

- [Android-BluetoothSPPLibrary](https://github.com/akexorcist/Android-BluetoothSPPLibrary)：开发者用它可以通过蓝牙与微控制器（microcontroller）或Android设备进行通信。
- [RxAndroidBle](https://github.com/Polidea/RxAndroidBle)：基于RxJava技术，可用较低的电量操作蓝牙。

相机

- [CameraFilter](https://github.com/nekocode/CameraFilter)：使用OpenGL着色器实现实时相机过滤。
- [Material Camera](https://github.com/afollestad/material-camera)：基于Android平台的相机框架。

位置

[ReactiveLocation](https://github.com/mcharmas/Android-ReactiveLocation)：是一个轻量小型但非常实用的Google Play API封装，可以获取位置。   
[Smart Location Library](https://github.com/mrmans0n/smart-location-lib)：简化定位程序使用。

布局

- [Android Swipe Layout](https://github.com/daimajia/AndroidSwipeLayout)：为对象提供滑动功能，例如滑动删除。
- [FlexboxLayout](https://github.com/google/flexbox-layout)：CSS领域一个非常强大的布局工具。

日志

- [Logger](https://github.com/orhanobut/logger)：一款简单但功能强大的日志工具。
- [Hugo](https://github.com/JakeWharton/hugo)：调用日志的注释触发方法，用来调试构建。

地图

- [AirMapView](https://github.com/airbnb/AirMapView)： 一个视图抽象、可以在没有 Google Play Services的情况下让设备使用的地图交互功能。
- [Google地图实用工具汇总](https://github.com/googlemaps/android-maps-utils)，例如热图或标记聚类。

音频

- [Music Player](https://github.com/andremion/Music-Player)：是使用Swift编写的全功能的音乐播放器，UI也很漂亮。
- [RxAndroidAudio](https://github.com/Piasy/RxAndroidAudio)：Android音频封装库。

GIF

- [android-gif-drawable](https://github.com/koral--/android-gif-drawable)：在Android上显示GIF图片。
- [GifView](https://github.com/Cutta/GifView):Android上的另一个显示和绘制GIF的库。

图片

- [uCrop](https://github.com/Yalantis/uCrop)：Android上的图片修剪库。
- [Glide](https://github.com/bumptech/glide)：Android媒体管理和图片加载库。

视频

- [VideoPlayerManager](https://github.com/danylovolokh/VideoPlayerManager)：帮助开发者使用MediaPlayer。
- [Easy Video Player](https://github.com/afollestad/easy-video-player)：易于使用的视频播放器。

消息

- [Chateau](https://github.com/badoo/Chateau)：在Android应用中提供聊天功能的框架。

网络

- [OkHttp](https://github.com/square/okhttp)：Android的HTTP客户端库。
- [AndroidAsync](https://github.com/koush/AndroidAsync)：异步通信库。

通知推送

- [PubNub](https://github.com/pubnub/java)：用来处理推送通知的通信服务。
- [Gandalf](https://github.com/btkelly/gandalf)：给用户发送更新或维护消息库。

支付

- [Android In-App Billing v3 Library](https://github.com/anjlab/android-inapp-billing-v3)：开发者通过Android v3 API轻松处理应用程序支付问题。
- [Checkout](https://github.com/serso/android-checkout)：Android平台上的另一个支付库。

安全

- [Sodium](https://github.com/jedisct1/libsodium)：用来加密，解密，签名和散列的算法库。
- [PiracyChecker](https://github.com/javiersantos/PiracyChecker)：使用Googles LVL和APK签名保护等技术来防止APP被破解和盗版的函数库。

文本

- [Ticker](https://github.com/robinhood/ticker)：支持内容滚动的UI组件。
- [MaterialEditText](https://github.com/rengwuxian/MaterialEditText)：Material Design风格的文本编辑器。

字体

- [fontbinding](https://github.com/lisawray/fontbinding)：通过数据绑定是在XML实现自定义字体的库。
- [Calligraphy](https://github.com/chrisjenx/Calligraphy):在Android应用程序上轻松使用自定义字体。

用户接口

- [Material Design Android Library](https://github.com/navasmdc/MaterialDesignLibrary)：实现在Android 2.2版本中使用Material Design功能的函数库。
- [Material](https://github.com/rey5137/Material)：在低版本Android系统中实现Material Design功能的函数库。

Activity Indicator

- [AppIntro](https://github.com/PaoloRotolo/AppIntro)：实现类似Google Apps的应用启动引导页。
- [LolliPin](https://github.com/OrangeGangsters/LolliPin)：Material Design风格的Pin码输入界面。

按钮

- [Android-Bootstrap](https://github.com/Bearded-Hen/Android-Bootstrap)：使用Bootstrap实现各种按钮功能。
- [Android Morphing Button](https://github.com/dmytrodanylyk/android-morphing-button)：实现按钮的动态变化切换。

表单

- [Vertical Stepper Form Library](https://github.com/ernestoyaquello/vertical-stepper-form)：Material Design风格的垂直方向进度器。

键盘

- [KeyboardVisibilityEvent](https://github.com/yshrsmz/KeyboardVisibilityEvent)：显示和隐藏键盘。
- [AndroidKeyboardWatcher](https://github.com/AzimoLabs/AndroidKeyboardWatcher)：另一个用来处理键盘打开关闭监听器的函数库。

菜单

- [BottomBar](https://github.com/roughike/BottomBar)：Material Design风格的底部导航栏。
- [Side Menu](https://github.com/Yalantis/Side-Menu.Android)：创建侧滑菜单库。

Rating

- [Android-Rate](https://github.com/hotchemi/Android-Rate)：定期提醒用户到应用市场给应用打分的函数库。
- [SimpleRatingBar](https://github.com/FlyingPumba/SimpleRatingBar)：一个用于替换系统提供的评分控件的函数库。

Slider

 

- [SlidingMenu](https://github.com/jfeinstein10/SlidingMenu)：可为应用程序创建侧滑菜单的库。
- [MaterialDrawer](https://github.com/mikepenz/MaterialDrawer)：Material Design风格的侧边抽屉库实现。