Latest commit

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Android 优秀开源项目汇总


事件总线(订阅者模式)

通过发布/订阅事件解耦事件发送和接受,从而简化应用程序之间的通信

1.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) 支持根据事件类型订阅

**2.Otto 开源组织 Square **

项目地址:https://github.com/square/otto 文档介绍:http://square.github.io/otto/

网络请求

1.Volley 开源组织 Google

项目地址:https://android.googlesource.com/platform/frameworks/volley 文档介绍:http://commondatastorage.googleapis.com/io-2013/presentations/110%20-%20Volley-%20Easy,%20Fast%20Networking%20for%20Android.pdf 特点: (1)库小,Google 维护,提供的网络通信库,使得网络请求更简单、更快速

2.okhttp 开源组织 Square

项目地址: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 缓存减少不必要的请求

3.Retrofit 开源组织 Square

项目地址:https://github.com/square/retrofit 文档介绍:http://square.github.io/retrofit/ 特点: (1)配合Rx.xxx系列使用代码更加简洁

** 4.Asynchronous Http Client for Android **

项目地址:https://github.com/loopj/android-async-http 文档介绍:http://loopj.com/android-async-http/ 特点: (1)异步 Http 请求 (2) 在匿名回调中处理请求结果 (3) 在 UI 线程外进行 http 请求 (4) 文件断点上传 (5) 智能重试 (6) 默认 gzip 压缩 (7) 支持解析成 Json 格式 (8) 可将 Cookies 持久化到 SharedPreferences

图片缓存

1.Android-Universal-Image-Loader

项目地址:https://github.com/nostra13/Android-Universal-Image-Loader 原理剖析文档:Android-Universal-Image-Loader 特点: (1)目前使用最广泛的图片缓存,支持主流图片缓存的绝大多数特性

2.picasso 开源组织 Square

项目地址:https://github.com/square/picasso 文档介绍:http://square.github.io/picasso/ 特点: (1)可以自动检测 adapter 的重用并取消之前的下载 (2)图片变换 (3)可以加载本地资源 (4)可以设置占位资源 (5)支持 debug 模式

3.Cube ImageLoader 开源组织 阿里巴巴一淘

项目地址:https://github.com/etao-open-source/cube-sdk Demo 地址:https://github.com/liaohuqiu/cube-sdk/raw/master/cube-sdk-sample.apk 特点: (1)综合了 Android-Universal-Image-Loader 和 square 等组件优点,简单易用,良好的中文文档支持

**4.fresco 开源组织 Facebook **

项目地址:https://github.com/facebook/fresco 文档介绍:http://frescolib.org/ 特点: (1) 两个内存缓存加上磁盘缓存构成了三级缓存 (2) 支持流式,可以类似网页上模糊渐进式显示图片 (3) 对多帧动画图片支持更好,如 Gif、WebP (4) 更多样的显示,如圆角、进度条、点击重试、自定义对焦点 (5) 更多样的加载,如支持 EXIF、全面支持 WebP (6) 支持 Android 2.3+

5.Glide 作者 bumptech

项目地址:https://github.com/bumptech/glide 特点: (1) GIF 动画的解码 (2) 本地视频剧照的解码 (3) 支持缩略图 (4) Activity 生命周期的集成 (5) 转码的支持 (6) 动画的支持 (7) OkHttp 和 Volley 的支持

数据库

1.greenDAO 作者greenrobot

Android Sqlite orm 的 db 工具类 项目地址:https://github.com/greenrobot/greenDAO 文档介绍:http://greendao-orm.com/documentation/ 特点: (1) 性能佳 (2) 简单易用的 API (3) 内存小好小 (4) 库大小小

**2.ActiveAndroid **

项目地址:https://github.com/pardom/ActiveAndroid 文档介绍:https://github.com/pardom/ActiveAndroid/wiki/_pages

响应式编程Rx.xx

学习Rx.java 资料:https://github.com/lzyzsd/Awesome-RxJava

1.RxJava 开源组织ReactiveX

项目地址:https://github.com/ReactiveX/RxJava

**2.RxAndroid 开源组织ReactiveX **

项目地址:https://github.com/ReactiveX/RxAndroid 特点:RxJava的Android拓展

** 3.rx-preferences **

项目地址: https://github.com/f2prateek/rx-preferences 特点:(1)使SharedPreferences支持RxJava

4.RxBinding 作者JakeWharton

项目地址:https://github.com/JakeWharton/RxBinding 特点:(1)安卓UI控件的RxJava绑定API

5.xBus 作者 mcxiaoke

项目地址:https://github.com/mcxiaoke/xBus 特点:(1)简洁的EventBus实现

6.RxLifecycle 作者 trello

项目地址:https://github.com/trello/RxLifecycle 特点:帮助使用了RxJava的安卓应用控制生命周期

7. sqlbrite 开源组织 square

项目地址: https://github.com/square/sqlbrite 特点:支持RxJava的sqlite数据库

依赖注入

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

1.AndroidAnnotations(Code Diet)

项目地址:https://github.com/excilys/androidannotations 文档介绍:https://github.com/excilys/androidannotations/wiki 官网网址:http://androidannotations.org/ 特点:(1) 依赖注入:包括 view,extras,系统服务,资源等等 (2) 简单的线程模型,通过 annotation 表示方法运行在 ui 线程还是后台线程 (3) 事件绑定:通过 annotation 表示 view 的响应事件,不用在写内部类 (4) REST 客户端:定义客户端接口,自动生成 REST 请求的实现 (5) 没有你想象的复杂:AndroidAnnotations 只是在在编译时生成相应子类 (6) 不影响应用性能:仅 50kb,在编译时完成,不会对运行时有性能影响。

2.butterknife 作者JakeWharton

利用 annotation 帮你快速完成 View 的初始化,减少代码 项目地址:https://github.com/JakeWharton/butterknife 文档介绍:http://jakewharton.github.io/butterknife/

3.Dagger 开源组织square

依赖注入,适用于 Android 和 Java 项目地址:https://github.com/square/dagger 原理剖析文档:Dagger 文档介绍:http://square.github.io/dagger/

4.Dagger2 开源组织Google

项目地址:https://github.com/google/dagger 官网文档:http://google.github.io/dagger/

图片裁剪库

1.Yalantis 出品的强大的图片裁剪库 ,支持缩放,旋转图片,支持各种比例的裁剪框

项目地址:https://github.com/Yalantis/uCrop

效果图:

icon

2.android-crop

图片裁剪 Activity 项目地址:https://github.com/jdamcd/android-crop

效果图:

![icon](/images/screenshot (1).png)

Listview

实现ListItem 点击后置顶并可显示,个性化添加的item的内部View 的ListView

项目地址:https://github.com/s8871404/PopupListView

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

效果图:

icon

RecyclerView

### 1.IndexRecyclerView 实现联系人的功能

1.首字母悬浮在顶部。 2.侧滑删除联系人。 3.联系人索引。 项目地址:https://github.com/jiang111/IndexRecyclerView 效果图: icon

2.RecyclerViewEnhanced

项目地址:https://github.com/nikhilpanju/RecyclerViewEnhanced 效果图: icon

3.RecyclerViewUndoSwipe

项目地址:https://github.com/HoneyNeutrons/RecyclerViewUndoSwipe 效果图: icon

4.UltimateRecyclerView

项目地址:https://github.com/cymcsg/UltimateRecyclerView 效果图: iconiconicon

5.android-advancedrecyclerview

RecyclerView支持各种功能的库

项目地址:https://github.com/h6ah4i/android-advancedrecyclerview

6.SuperSLiM

RecyclerView 的一款layout manager,支持linear,grid以及staggered之间的互换.并支持sticky特性 项目地址:https://github.com/TonicArtos/SuperSLiM 效果图: icon

7.recyclerview-animators

各种动画库, 添加 itemanimator 到 RecyclerView items 项目地址:https://github.com/wasabeef/recyclerview-animators 效果图: iconicon

8.RecyclerViewSwipeDismiss

滑动删除的RecyclerView 项目地址:https://github.com/CodeFalling/RecyclerViewSwipeDismiss 效果图: icon

9.Searchable RecyclerView

利用SearchView实现的RecyclerView搜索效果,并且充分利用了RecyclerView中的item animations 动画 项目地址:https://github.com/Wrdlbrnft/Searchable-RecyclerView-Demo 效果图: icon

10.EasyRecyclerViewSidebar

实现伦敦眼效果的LayoutManager 项目地址:https://github.com/CaMnter/EasyRecyclerViewSidebar 效果图: iconicon

11.ItemTouchHelperDemo

使用ItemTouchHelper实现今日头条 网易新闻 的频道排序、频道移动 项目地址:https://github.com/YoKeyword/ItemTouchHelperDemo 效果图: icon

ViewPager

1.AdvancedPagerSlidingTabStrip

一个完美兼容ViewPager的导航栏组件;可以自定义TabView;能动态加载Tab上的Icon图片; 能显示Tab的消息数量和提示小圆点;支持自定义为微博形式的可滑动tab。

项目地址:https://github.com/HomHomLin/AdvancedPagerSlidingTabStrip

效果图:

icon

2.ConvenientBanner

通用的广告栏控件,让你轻松实现广告头效果。支持无限循环,可以设置自动翻页和时间(而且非常智能,手指触碰则暂停翻页,离开自动开始翻页。你也可以设置在界面onPause的时候不进行自动翻页,onResume之后继续自动翻页),并且提供多种翻页特效。 对比其他广告栏控件,大多都需要对源码进行改动才能加载网络图片,或者帮你集成不是你所需要的图片缓存库。而这个库能让有代码洁癖的你欢喜,不需要对库源码进行修改你就可以使用任何你喜欢的网络图片库进行配合。

项目地址:https://github.com/saiwu-bigkoo/Android-ConvenientBanner

效果图:

icon

Adapter

1.BaseRecyclerViewAdapterHelper

  1. 优化Adapter代码(减少百分之70%代码)
  2. 添加点击item点击、长按事件、以及item子控件的点击事件
  3. 添加加载动画(一行代码轻松切换5种默认动画)
  4. 添加头部、尾部、下拉刷新、上拉加载(感觉又回到ListView时代)
  5. 设置自定义的加载更多布局
  6. 添加分组(随心定义分组头部)
  7. 自定义不同的item类型(简单配置、无需重写额外方法)
  8. 设置空布局(比Listview的setEmptyView还要好用!)
  9. 添加拖拽item 项目地址:https://github.com/CymChad/BaseRecyclerViewAdapterHelper 效果图: iconiconicon|

2.FlexibleAdapter

一款强大的RecyclerView的adapter,支持ViewHolders动画,拖拽,滑动,取消, 伸缩等 项目地址:https://github.com/davideas/FlexibleAdaptericonicon

Animations

1.Android-SpinKit

Android加载动画库 项目地址:https://github.com/ybq/Android-SpinKit 效果图: icon

2.LoadingDrawable

一些酷炫的android加载动画,可以与任何组件配合使用作为加载的组件或者ProgressBar。

项目地址:https://github.com/dinuscxj/LoadingDrawable

效果图:

icon

Layout

FlowTagLayout

Android流式布局,支持点击、单选、多选等,适合用于产品标签等,用法采用Adapter模式,和ListView、GridView用法一样 项目地址:https://github.com/hanhailong/FlowTag 效果图:

icon

ImageView

1.PhotoView

支持双击或双指缩放的 ImageView,在 ViewPager 等 Scrolling view 中正常使用,相比上面的 AndroidTouchGallery,不仅支持 ViewPager,同时支持单个 ImageView 项目地址:https://github.com/chrisbanes/PhotoView 原理剖析文档:PhotoView

ProgressBar

1.NumberProgressBar

带数字进度的进度条 项目地址:https://github.com/daimajia/NumberProgressBar 效果图: icon

2.MaterialLoadingProgressBar

抽取自 SwipeRefreshLayout 的 Material Design 进度指示器 项目地址:https://github.com/lsjwzh/MaterialLoadingProgressBar 效果图: icon

3.CircleProgressBar

优点

1.继承ProgressBar, 不必关心当前进度状态的保存, ProgressBar 已经在onSaveInstanceState()和 onRestoreInstanceState(Parcelable state)中帮我们写好了。 2.定制性很强,可以设置两种风格的进度条,设置进度条的颜色和进度文本的颜色和大小, 由于代码中对于进度文本的格化化是使用的String.format(), 所以进度文本可以根据需要随意定制 3.代码优雅,代码注释很全面,格式整齐,可以直接在xml中设置相关的属性。 项目地址:https://github.com/dinuscxj/CircleProgressBar 效果图: icon

Button

SwitchButton

状态切换的 Button,类似 iOS,拥有良好的用户界面 项目地址:https://github.com/kyleduo/SwitchButton 效果图: icon

Dialog

1.Android-AlertView

仿iOS的AlertViewController 几乎完美还原iOS 的 AlertViewController ,同时支持Alert和ActionSheet模式,每一个细节都是精雕细琢,并把api封装成懒到极致模式,一行代码就可以进行弹窗. 项目地址:https://github.com/saiwu-bigkoo/Android-AlertView 效果图: icon

2.CanDialog

仿照系统Dialog所写,继承于FrameLayout,添加一些动画,一些显示类型。 项目地址:https://github.com/canyinghao/CanDialog 效果图: icon

EditText

GridPasswordView

模仿支付宝输入密码框 项目地址:https://github.com/Jungerr/GridPasswordView 效果图: icon

TextView

1.ATableView

ios 风格控件

项目地址:https://github.com/dmacosta/ATableView 效果图: icon

2.android-uitableview

ios 风格控件,包括 Button、ListView、TableView 项目地址:https://github.com/Trinea/android-open-project

3.MultiActionTextView

可以分别给 TextView 中的某几个字设置点击事件的 TextView

项目地址:https://github.com/ajaysahani/MultiActionTextView

效果图:

icon

Time View

1.DateTimePicker

日期选择部件(Google Agenda 的样式风格) 项目地址:https://github.com/flavienlaurent/datetimepicker 效果图: icon

2.Week View

日期控件,支持周,天视图,支持自定义样式 项目地址:https://github.com/alamkanak/Android-Week-View 效果图: icon

3.PickerView

仿 iOS 的 PickerView 控件,有时间选择和选项选择并支持一二三级联动效果,TimePopupWindow 时间选择器,支持年月日时分,年月日,时分等格式;OptionsPopupWindow 选项选择器,支持一,二,三级选项选择,并且可以设置是否联动 项目地址:https://github.com/saiwu-bigkoo/Android-PickerView 效果图: icon

Graph View

1.MPAndroidChart

强大的图表绘制工具,支持折线图、面积图、散点图、时间图、柱状图、条图、饼图、气泡图、圆环图、范围(高至低)条形图、网状图等;支持图的拖拽缩放;支持 Android 2.2 以上,支持横纵轴缩放,多指缩放,展现动画、高亮、保存到 sdcard、从文件读取图表 项目地址:https://github.com/PhilJay/MPAndroidChart 效果图: iconicon

2.XCL-Charts

XCL-Charts 基于原生的 Canvas 来绘制各种图表,在设计时,尽量在保证开发效率的同时,给使用者提供足够多的定制化能力。因此使用简便,同时具有相当灵活的定制能力。目前支持 3D/非 3D 柱形图(Bar Chart)、3D/非 3D 饼图(Pie Chart)、堆积图(Stacked Bar Chart)、面积图(Area Chart)、 折线图(Line Chart)、曲线图(Spline Chart)、环形图(Dount Chart)、南丁格尔玫瑰图(Rose Chart)、仪表盘(Dial Chart)、刻度盘(Gauge Chart)、雷达图(Radar Chart)、圆形图(Circle Chart)等图表。其它特性还包括支持图表缩放、手势移动、动画显示效果、高密度柱形显示、图表分界定制线、多图表的混合显示及同数据源不同类型图表切换等。 项目地址:https://github.com/xcltapestry/XCL-Charts

3.android-lockpattern

Android 的图案密码解锁 项目地址: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

NotifyUtil

高仿淘宝,网易新闻,微信,应用宝,环聊等等热门App的通知视图,并且完通知工具类的封装,提供多达8种最常见的App通知接口,支持Android 5.0悬浮式通知样式 项目地址:https://github.com/wenmingvs/NotifyUtil 效果图: icon

StepView

超炫的状态流程 项目地址:https://github.com/baoyachi/StepView 效果图: icon

扁平UI

1.FlatUI

项目地址:https://github.com/eluleci/FlatUI 效果图: icon

2.MaterialDesignLibrary

Material Design Android Library 项目地址:https://github.com/navasmdc/MaterialDesignLibrary

开发插件

根据Gson库使用的要求,将JSONObject格式的String 解析成实体

配合ButterKnife实现注解,从此不用写findViewById,想着就爽啊。在Activity,Fragment,Adapter中选中布局xml的资源id自动生成butterknife注解。

效果图: icon

JavaBean序列化,快速实现Parcelable接口。

显示依赖库中得方法数

在Android Studio中请求、调试接口

效果图: icon

根据xml自动生成style代码的插件

效果图: iconiconicon

通过资源文件命名自动生成Selector文件。

效果图: iconiconicon

在java 6 7中使用 lambda表达式插件

修改编译的jdk为java8:

效果图: icon

添加Material主题到你的AS

效果图: iconiconicon

About

Android 开源项目汇总

Resources

Stars

17 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Latest commit

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Android 优秀开源项目汇总


事件总线(订阅者模式)

通过发布/订阅事件解耦事件发送和接受,从而简化应用程序之间的通信

1.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) 支持根据事件类型订阅

**2.Otto 开源组织 Square **

项目地址:https://github.com/square/otto 文档介绍:http://square.github.io/otto/

网络请求

1.Volley 开源组织 Google

项目地址:https://android.googlesource.com/platform/frameworks/volley 文档介绍:http://commondatastorage.googleapis.com/io-2013/presentations/110%20-%20Volley-%20Easy,%20Fast%20Networking%20for%20Android.pdf 特点: (1)库小,Google 维护,提供的网络通信库,使得网络请求更简单、更快速

2.okhttp 开源组织 Square

项目地址: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 缓存减少不必要的请求

3.Retrofit 开源组织 Square

项目地址:https://github.com/square/retrofit 文档介绍:http://square.github.io/retrofit/ 特点: (1)配合Rx.xxx系列使用代码更加简洁

** 4.Asynchronous Http Client for Android **

项目地址:https://github.com/loopj/android-async-http 文档介绍:http://loopj.com/android-async-http/ 特点: (1)异步 Http 请求 (2) 在匿名回调中处理请求结果 (3) 在 UI 线程外进行 http 请求 (4) 文件断点上传 (5) 智能重试 (6) 默认 gzip 压缩 (7) 支持解析成 Json 格式 (8) 可将 Cookies 持久化到 SharedPreferences

图片缓存

1.Android-Universal-Image-Loader

项目地址:https://github.com/nostra13/Android-Universal-Image-Loader 原理剖析文档:Android-Universal-Image-Loader 特点: (1)目前使用最广泛的图片缓存,支持主流图片缓存的绝大多数特性

2.picasso 开源组织 Square

项目地址:https://github.com/square/picasso 文档介绍:http://square.github.io/picasso/ 特点: (1)可以自动检测 adapter 的重用并取消之前的下载 (2)图片变换 (3)可以加载本地资源 (4)可以设置占位资源 (5)支持 debug 模式

3.Cube ImageLoader 开源组织 阿里巴巴一淘

项目地址:https://github.com/etao-open-source/cube-sdk Demo 地址:https://github.com/liaohuqiu/cube-sdk/raw/master/cube-sdk-sample.apk 特点: (1)综合了 Android-Universal-Image-Loader 和 square 等组件优点,简单易用,良好的中文文档支持

**4.fresco 开源组织 Facebook **

项目地址:https://github.com/facebook/fresco 文档介绍:http://frescolib.org/ 特点: (1) 两个内存缓存加上磁盘缓存构成了三级缓存 (2) 支持流式,可以类似网页上模糊渐进式显示图片 (3) 对多帧动画图片支持更好,如 Gif、WebP (4) 更多样的显示,如圆角、进度条、点击重试、自定义对焦点 (5) 更多样的加载,如支持 EXIF、全面支持 WebP (6) 支持 Android 2.3+

5.Glide 作者 bumptech

项目地址:https://github.com/bumptech/glide 特点: (1) GIF 动画的解码 (2) 本地视频剧照的解码 (3) 支持缩略图 (4) Activity 生命周期的集成 (5) 转码的支持 (6) 动画的支持 (7) OkHttp 和 Volley 的支持

数据库

1.greenDAO 作者greenrobot

Android Sqlite orm 的 db 工具类 项目地址:https://github.com/greenrobot/greenDAO 文档介绍:http://greendao-orm.com/documentation/ 特点: (1) 性能佳 (2) 简单易用的 API (3) 内存小好小 (4) 库大小小

**2.ActiveAndroid **

项目地址:https://github.com/pardom/ActiveAndroid 文档介绍:https://github.com/pardom/ActiveAndroid/wiki/_pages

响应式编程Rx.xx

学习Rx.java 资料:https://github.com/lzyzsd/Awesome-RxJava

1.RxJava 开源组织ReactiveX

项目地址:https://github.com/ReactiveX/RxJava

**2.RxAndroid 开源组织ReactiveX **

项目地址:https://github.com/ReactiveX/RxAndroid 特点:RxJava的Android拓展

** 3.rx-preferences **

项目地址: https://github.com/f2prateek/rx-preferences 特点:(1)使SharedPreferences支持RxJava

4.RxBinding 作者JakeWharton

项目地址:https://github.com/JakeWharton/RxBinding 特点:(1)安卓UI控件的RxJava绑定API

5.xBus 作者 mcxiaoke

项目地址:https://github.com/mcxiaoke/xBus 特点:(1)简洁的EventBus实现

6.RxLifecycle 作者 trello

项目地址:https://github.com/trello/RxLifecycle 特点:帮助使用了RxJava的安卓应用控制生命周期

7. sqlbrite 开源组织 square

项目地址: https://github.com/square/sqlbrite 特点:支持RxJava的sqlite数据库

依赖注入

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

1.AndroidAnnotations(Code Diet)

项目地址:https://github.com/excilys/androidannotations 文档介绍:https://github.com/excilys/androidannotations/wiki 官网网址:http://androidannotations.org/ 特点:(1) 依赖注入:包括 view,extras,系统服务,资源等等 (2) 简单的线程模型,通过 annotation 表示方法运行在 ui 线程还是后台线程 (3) 事件绑定:通过 annotation 表示 view 的响应事件,不用在写内部类 (4) REST 客户端:定义客户端接口,自动生成 REST 请求的实现 (5) 没有你想象的复杂:AndroidAnnotations 只是在在编译时生成相应子类 (6) 不影响应用性能:仅 50kb,在编译时完成,不会对运行时有性能影响。

2.butterknife 作者JakeWharton

利用 annotation 帮你快速完成 View 的初始化,减少代码 项目地址:https://github.com/JakeWharton/butterknife 文档介绍:http://jakewharton.github.io/butterknife/

3.Dagger 开源组织square

依赖注入,适用于 Android 和 Java 项目地址:https://github.com/square/dagger 原理剖析文档:Dagger 文档介绍:http://square.github.io/dagger/

4.Dagger2 开源组织Google

项目地址:https://github.com/google/dagger 官网文档:http://google.github.io/dagger/

图片裁剪库

1.Yalantis 出品的强大的图片裁剪库 ,支持缩放,旋转图片,支持各种比例的裁剪框

项目地址:https://github.com/Yalantis/uCrop

效果图:

icon

2.android-crop

图片裁剪 Activity 项目地址:https://github.com/jdamcd/android-crop

效果图:

![icon](/images/screenshot (1).png)

Listview

实现ListItem 点击后置顶并可显示,个性化添加的item的内部View 的ListView

项目地址:https://github.com/s8871404/PopupListView

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

效果图:

icon

RecyclerView

### 1.IndexRecyclerView 实现联系人的功能

1.首字母悬浮在顶部。 2.侧滑删除联系人。 3.联系人索引。 项目地址:https://github.com/jiang111/IndexRecyclerView 效果图: icon

2.RecyclerViewEnhanced

项目地址:https://github.com/nikhilpanju/RecyclerViewEnhanced 效果图: icon

3.RecyclerViewUndoSwipe

项目地址:https://github.com/HoneyNeutrons/RecyclerViewUndoSwipe 效果图: icon

4.UltimateRecyclerView

项目地址:https://github.com/cymcsg/UltimateRecyclerView 效果图: iconiconicon

5.android-advancedrecyclerview

RecyclerView支持各种功能的库

项目地址:https://github.com/h6ah4i/android-advancedrecyclerview

6.SuperSLiM

RecyclerView 的一款layout manager,支持linear,grid以及staggered之间的互换.并支持sticky特性 项目地址:https://github.com/TonicArtos/SuperSLiM 效果图: icon

7.recyclerview-animators

各种动画库, 添加 itemanimator 到 RecyclerView items 项目地址:https://github.com/wasabeef/recyclerview-animators 效果图: iconicon

8.RecyclerViewSwipeDismiss

滑动删除的RecyclerView 项目地址:https://github.com/CodeFalling/RecyclerViewSwipeDismiss 效果图: icon

9.Searchable RecyclerView

利用SearchView实现的RecyclerView搜索效果,并且充分利用了RecyclerView中的item animations 动画 项目地址:https://github.com/Wrdlbrnft/Searchable-RecyclerView-Demo 效果图: icon

10.EasyRecyclerViewSidebar

实现伦敦眼效果的LayoutManager 项目地址:https://github.com/CaMnter/EasyRecyclerViewSidebar 效果图: iconicon

11.ItemTouchHelperDemo

使用ItemTouchHelper实现今日头条 网易新闻 的频道排序、频道移动 项目地址:https://github.com/YoKeyword/ItemTouchHelperDemo 效果图: icon

ViewPager

1.AdvancedPagerSlidingTabStrip

一个完美兼容ViewPager的导航栏组件;可以自定义TabView;能动态加载Tab上的Icon图片; 能显示Tab的消息数量和提示小圆点;支持自定义为微博形式的可滑动tab。

项目地址:https://github.com/HomHomLin/AdvancedPagerSlidingTabStrip

效果图:

icon

2.ConvenientBanner

通用的广告栏控件,让你轻松实现广告头效果。支持无限循环,可以设置自动翻页和时间(而且非常智能,手指触碰则暂停翻页,离开自动开始翻页。你也可以设置在界面onPause的时候不进行自动翻页,onResume之后继续自动翻页),并且提供多种翻页特效。 对比其他广告栏控件,大多都需要对源码进行改动才能加载网络图片,或者帮你集成不是你所需要的图片缓存库。而这个库能让有代码洁癖的你欢喜,不需要对库源码进行修改你就可以使用任何你喜欢的网络图片库进行配合。

项目地址:https://github.com/saiwu-bigkoo/Android-ConvenientBanner

效果图:

icon

Adapter

1.BaseRecyclerViewAdapterHelper

  1. 优化Adapter代码(减少百分之70%代码)
  2. 添加点击item点击、长按事件、以及item子控件的点击事件
  3. 添加加载动画(一行代码轻松切换5种默认动画)
  4. 添加头部、尾部、下拉刷新、上拉加载(感觉又回到ListView时代)
  5. 设置自定义的加载更多布局
  6. 添加分组(随心定义分组头部)
  7. 自定义不同的item类型(简单配置、无需重写额外方法)
  8. 设置空布局(比Listview的setEmptyView还要好用!)
  9. 添加拖拽item 项目地址:https://github.com/CymChad/BaseRecyclerViewAdapterHelper 效果图: iconiconicon|

2.FlexibleAdapter

一款强大的RecyclerView的adapter,支持ViewHolders动画,拖拽,滑动,取消, 伸缩等 项目地址:https://github.com/davideas/FlexibleAdaptericonicon

Animations

1.Android-SpinKit

Android加载动画库 项目地址:https://github.com/ybq/Android-SpinKit 效果图: icon

2.LoadingDrawable

一些酷炫的android加载动画,可以与任何组件配合使用作为加载的组件或者ProgressBar。

项目地址:https://github.com/dinuscxj/LoadingDrawable

效果图:

icon

Layout

FlowTagLayout

Android流式布局,支持点击、单选、多选等,适合用于产品标签等,用法采用Adapter模式,和ListView、GridView用法一样 项目地址:https://github.com/hanhailong/FlowTag 效果图:

icon

ImageView

1.PhotoView

支持双击或双指缩放的 ImageView,在 ViewPager 等 Scrolling view 中正常使用,相比上面的 AndroidTouchGallery,不仅支持 ViewPager,同时支持单个 ImageView 项目地址:https://github.com/chrisbanes/PhotoView 原理剖析文档:PhotoView

ProgressBar

1.NumberProgressBar

带数字进度的进度条 项目地址:https://github.com/daimajia/NumberProgressBar 效果图: icon

2.MaterialLoadingProgressBar

抽取自 SwipeRefreshLayout 的 Material Design 进度指示器 项目地址:https://github.com/lsjwzh/MaterialLoadingProgressBar 效果图: icon

3.CircleProgressBar

优点

1.继承ProgressBar, 不必关心当前进度状态的保存, ProgressBar 已经在onSaveInstanceState()和 onRestoreInstanceState(Parcelable state)中帮我们写好了。 2.定制性很强,可以设置两种风格的进度条,设置进度条的颜色和进度文本的颜色和大小, 由于代码中对于进度文本的格化化是使用的String.format(), 所以进度文本可以根据需要随意定制 3.代码优雅,代码注释很全面,格式整齐,可以直接在xml中设置相关的属性。 项目地址:https://github.com/dinuscxj/CircleProgressBar 效果图: icon

Button

SwitchButton

状态切换的 Button,类似 iOS,拥有良好的用户界面 项目地址:https://github.com/kyleduo/SwitchButton 效果图: icon

Dialog

1.Android-AlertView

仿iOS的AlertViewController 几乎完美还原iOS 的 AlertViewController ,同时支持Alert和ActionSheet模式,每一个细节都是精雕细琢,并把api封装成懒到极致模式,一行代码就可以进行弹窗. 项目地址:https://github.com/saiwu-bigkoo/Android-AlertView 效果图: icon

2.CanDialog

仿照系统Dialog所写,继承于FrameLayout,添加一些动画,一些显示类型。 项目地址:https://github.com/canyinghao/CanDialog 效果图: icon

EditText

GridPasswordView

模仿支付宝输入密码框 项目地址:https://github.com/Jungerr/GridPasswordView 效果图: icon

TextView

1.ATableView

ios 风格控件

项目地址:https://github.com/dmacosta/ATableView 效果图: icon

2.android-uitableview

ios 风格控件,包括 Button、ListView、TableView 项目地址:https://github.com/Trinea/android-open-project

3.MultiActionTextView

可以分别给 TextView 中的某几个字设置点击事件的 TextView

项目地址:https://github.com/ajaysahani/MultiActionTextView

效果图:

icon

Time View

1.DateTimePicker

日期选择部件(Google Agenda 的样式风格) 项目地址:https://github.com/flavienlaurent/datetimepicker 效果图: icon

2.Week View

日期控件,支持周,天视图,支持自定义样式 项目地址:https://github.com/alamkanak/Android-Week-View 效果图: icon

3.PickerView

仿 iOS 的 PickerView 控件,有时间选择和选项选择并支持一二三级联动效果,TimePopupWindow 时间选择器,支持年月日时分,年月日,时分等格式;OptionsPopupWindow 选项选择器,支持一,二,三级选项选择,并且可以设置是否联动 项目地址:https://github.com/saiwu-bigkoo/Android-PickerView 效果图: icon

Graph View

1.MPAndroidChart

强大的图表绘制工具,支持折线图、面积图、散点图、时间图、柱状图、条图、饼图、气泡图、圆环图、范围(高至低)条形图、网状图等;支持图的拖拽缩放;支持 Android 2.2 以上,支持横纵轴缩放,多指缩放,展现动画、高亮、保存到 sdcard、从文件读取图表 项目地址:https://github.com/PhilJay/MPAndroidChart 效果图: iconicon

2.XCL-Charts

XCL-Charts 基于原生的 Canvas 来绘制各种图表,在设计时,尽量在保证开发效率的同时,给使用者提供足够多的定制化能力。因此使用简便,同时具有相当灵活的定制能力。目前支持 3D/非 3D 柱形图(Bar Chart)、3D/非 3D 饼图(Pie Chart)、堆积图(Stacked Bar Chart)、面积图(Area Chart)、 折线图(Line Chart)、曲线图(Spline Chart)、环形图(Dount Chart)、南丁格尔玫瑰图(Rose Chart)、仪表盘(Dial Chart)、刻度盘(Gauge Chart)、雷达图(Radar Chart)、圆形图(Circle Chart)等图表。其它特性还包括支持图表缩放、手势移动、动画显示效果、高密度柱形显示、图表分界定制线、多图表的混合显示及同数据源不同类型图表切换等。 项目地址:https://github.com/xcltapestry/XCL-Charts

3.android-lockpattern

Android 的图案密码解锁 项目地址: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

NotifyUtil

高仿淘宝,网易新闻,微信,应用宝,环聊等等热门App的通知视图,并且完通知工具类的封装,提供多达8种最常见的App通知接口,支持Android 5.0悬浮式通知样式 项目地址:https://github.com/wenmingvs/NotifyUtil 效果图: icon

StepView

超炫的状态流程 项目地址:https://github.com/baoyachi/StepView 效果图: icon

扁平UI

1.FlatUI

项目地址:https://github.com/eluleci/FlatUI 效果图: icon

2.MaterialDesignLibrary

Material Design Android Library 项目地址:https://github.com/navasmdc/MaterialDesignLibrary

开发插件

根据Gson库使用的要求,将JSONObject格式的String 解析成实体

配合ButterKnife实现注解,从此不用写findViewById,想着就爽啊。在Activity,Fragment,Adapter中选中布局xml的资源id自动生成butterknife注解。

效果图: icon

JavaBean序列化,快速实现Parcelable接口。

显示依赖库中得方法数

在Android Studio中请求、调试接口

效果图: icon

根据xml自动生成style代码的插件

效果图: iconiconicon

通过资源文件命名自动生成Selector文件。

效果图: iconiconicon

在java 6 7中使用 lambda表达式插件

修改编译的jdk为java8:

效果图: icon

添加Material主题到你的AS

效果图: iconiconicon

About

Android 开源项目汇总

Resources

Stars

17 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Android 优秀开源项目汇总


事件总线(订阅者模式)

通过发布/订阅事件解耦事件发送和接受,从而简化应用程序之间的通信

1.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) 支持根据事件类型订阅

**2.Otto 开源组织 Square **

项目地址:https://github.com/square/otto 文档介绍:http://square.github.io/otto/

网络请求

1.Volley 开源组织 Google

项目地址:https://android.googlesource.com/platform/frameworks/volley 文档介绍:http://commondatastorage.googleapis.com/io-2013/presentations/110%20-%20Volley-%20Easy,%20Fast%20Networking%20for%20Android.pdf 特点: (1)库小,Google 维护,提供的网络通信库,使得网络请求更简单、更快速

2.okhttp 开源组织 Square

项目地址: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 缓存减少不必要的请求

3.Retrofit 开源组织 Square

项目地址:https://github.com/square/retrofit 文档介绍:http://square.github.io/retrofit/ 特点: (1)配合Rx.xxx系列使用代码更加简洁

** 4.Asynchronous Http Client for Android **

项目地址:https://github.com/loopj/android-async-http 文档介绍:http://loopj.com/android-async-http/ 特点: (1)异步 Http 请求 (2) 在匿名回调中处理请求结果 (3) 在 UI 线程外进行 http 请求 (4) 文件断点上传 (5) 智能重试 (6) 默认 gzip 压缩 (7) 支持解析成 Json 格式 (8) 可将 Cookies 持久化到 SharedPreferences

图片缓存

1.Android-Universal-Image-Loader

项目地址:https://github.com/nostra13/Android-Universal-Image-Loader 原理剖析文档:Android-Universal-Image-Loader 特点: (1)目前使用最广泛的图片缓存,支持主流图片缓存的绝大多数特性

2.picasso 开源组织 Square

项目地址:https://github.com/square/picasso 文档介绍:http://square.github.io/picasso/ 特点: (1)可以自动检测 adapter 的重用并取消之前的下载 (2)图片变换 (3)可以加载本地资源 (4)可以设置占位资源 (5)支持 debug 模式

3.Cube ImageLoader 开源组织 阿里巴巴一淘

项目地址:https://github.com/etao-open-source/cube-sdk Demo 地址:https://github.com/liaohuqiu/cube-sdk/raw/master/cube-sdk-sample.apk 特点: (1)综合了 Android-Universal-Image-Loader 和 square 等组件优点,简单易用,良好的中文文档支持

**4.fresco 开源组织 Facebook **

项目地址:https://github.com/facebook/fresco 文档介绍:http://frescolib.org/ 特点: (1) 两个内存缓存加上磁盘缓存构成了三级缓存 (2) 支持流式,可以类似网页上模糊渐进式显示图片 (3) 对多帧动画图片支持更好,如 Gif、WebP (4) 更多样的显示,如圆角、进度条、点击重试、自定义对焦点 (5) 更多样的加载,如支持 EXIF、全面支持 WebP (6) 支持 Android 2.3+

5.Glide 作者 bumptech

项目地址:https://github.com/bumptech/glide 特点: (1) GIF 动画的解码 (2) 本地视频剧照的解码 (3) 支持缩略图 (4) Activity 生命周期的集成 (5) 转码的支持 (6) 动画的支持 (7) OkHttp 和 Volley 的支持

数据库

1.greenDAO 作者greenrobot

Android Sqlite orm 的 db 工具类 项目地址:https://github.com/greenrobot/greenDAO 文档介绍:http://greendao-orm.com/documentation/ 特点: (1) 性能佳 (2) 简单易用的 API (3) 内存小好小 (4) 库大小小

**2.ActiveAndroid **

项目地址:https://github.com/pardom/ActiveAndroid 文档介绍:https://github.com/pardom/ActiveAndroid/wiki/_pages

响应式编程Rx.xx

学习Rx.java 资料:https://github.com/lzyzsd/Awesome-RxJava

1.RxJava 开源组织ReactiveX

项目地址:https://github.com/ReactiveX/RxJava

**2.RxAndroid 开源组织ReactiveX **

项目地址:https://github.com/ReactiveX/RxAndroid 特点:RxJava的Android拓展

** 3.rx-preferences **

项目地址: https://github.com/f2prateek/rx-preferences 特点:(1)使SharedPreferences支持RxJava

4.RxBinding 作者JakeWharton

项目地址:https://github.com/JakeWharton/RxBinding 特点:(1)安卓UI控件的RxJava绑定API

5.xBus 作者 mcxiaoke

项目地址:https://github.com/mcxiaoke/xBus 特点:(1)简洁的EventBus实现

6.RxLifecycle 作者 trello

项目地址:https://github.com/trello/RxLifecycle 特点:帮助使用了RxJava的安卓应用控制生命周期

7. sqlbrite 开源组织 square

项目地址: https://github.com/square/sqlbrite 特点:支持RxJava的sqlite数据库

依赖注入

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

1.AndroidAnnotations(Code Diet)

项目地址:https://github.com/excilys/androidannotations 文档介绍:https://github.com/excilys/androidannotations/wiki 官网网址:http://androidannotations.org/ 特点:(1) 依赖注入:包括 view,extras,系统服务,资源等等 (2) 简单的线程模型,通过 annotation 表示方法运行在 ui 线程还是后台线程 (3) 事件绑定:通过 annotation 表示 view 的响应事件,不用在写内部类 (4) REST 客户端:定义客户端接口,自动生成 REST 请求的实现 (5) 没有你想象的复杂:AndroidAnnotations 只是在在编译时生成相应子类 (6) 不影响应用性能:仅 50kb,在编译时完成,不会对运行时有性能影响。

2.butterknife 作者JakeWharton

利用 annotation 帮你快速完成 View 的初始化,减少代码 项目地址:https://github.com/JakeWharton/butterknife 文档介绍:http://jakewharton.github.io/butterknife/

3.Dagger 开源组织square

依赖注入,适用于 Android 和 Java 项目地址:https://github.com/square/dagger 原理剖析文档:Dagger 文档介绍:http://square.github.io/dagger/

4.Dagger2 开源组织Google

项目地址:https://github.com/google/dagger 官网文档:http://google.github.io/dagger/

图片裁剪库

1.Yalantis 出品的强大的图片裁剪库 ,支持缩放,旋转图片,支持各种比例的裁剪框

项目地址:https://github.com/Yalantis/uCrop

效果图:

icon

2.android-crop

图片裁剪 Activity 项目地址:https://github.com/jdamcd/android-crop

效果图:

![icon](/images/screenshot (1).png)

Listview

实现ListItem 点击后置顶并可显示,个性化添加的item的内部View 的ListView

项目地址:https://github.com/s8871404/PopupListView

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

效果图:

icon

RecyclerView

### 1.IndexRecyclerView 实现联系人的功能

1.首字母悬浮在顶部。 2.侧滑删除联系人。 3.联系人索引。 项目地址:https://github.com/jiang111/IndexRecyclerView 效果图: icon

2.RecyclerViewEnhanced

项目地址:https://github.com/nikhilpanju/RecyclerViewEnhanced 效果图: icon

3.RecyclerViewUndoSwipe

项目地址:https://github.com/HoneyNeutrons/RecyclerViewUndoSwipe 效果图: icon

4.UltimateRecyclerView

项目地址:https://github.com/cymcsg/UltimateRecyclerView 效果图: iconiconicon

5.android-advancedrecyclerview

RecyclerView支持各种功能的库

项目地址:https://github.com/h6ah4i/android-advancedrecyclerview

6.SuperSLiM

RecyclerView 的一款layout manager,支持linear,grid以及staggered之间的互换.并支持sticky特性 项目地址:https://github.com/TonicArtos/SuperSLiM 效果图: icon

7.recyclerview-animators

各种动画库, 添加 itemanimator 到 RecyclerView items 项目地址:https://github.com/wasabeef/recyclerview-animators 效果图: iconicon

8.RecyclerViewSwipeDismiss

滑动删除的RecyclerView 项目地址:https://github.com/CodeFalling/RecyclerViewSwipeDismiss 效果图: icon

9.Searchable RecyclerView

利用SearchView实现的RecyclerView搜索效果,并且充分利用了RecyclerView中的item animations 动画 项目地址:https://github.com/Wrdlbrnft/Searchable-RecyclerView-Demo 效果图: icon

10.EasyRecyclerViewSidebar

实现伦敦眼效果的LayoutManager 项目地址:https://github.com/CaMnter/EasyRecyclerViewSidebar 效果图: iconicon

11.ItemTouchHelperDemo

使用ItemTouchHelper实现今日头条 网易新闻 的频道排序、频道移动 项目地址:https://github.com/YoKeyword/ItemTouchHelperDemo 效果图: icon

ViewPager

1.AdvancedPagerSlidingTabStrip

一个完美兼容ViewPager的导航栏组件;可以自定义TabView;能动态加载Tab上的Icon图片; 能显示Tab的消息数量和提示小圆点;支持自定义为微博形式的可滑动tab。

项目地址:https://github.com/HomHomLin/AdvancedPagerSlidingTabStrip

效果图:

icon

2.ConvenientBanner

通用的广告栏控件,让你轻松实现广告头效果。支持无限循环,可以设置自动翻页和时间(而且非常智能,手指触碰则暂停翻页,离开自动开始翻页。你也可以设置在界面onPause的时候不进行自动翻页,onResume之后继续自动翻页),并且提供多种翻页特效。 对比其他广告栏控件,大多都需要对源码进行改动才能加载网络图片,或者帮你集成不是你所需要的图片缓存库。而这个库能让有代码洁癖的你欢喜,不需要对库源码进行修改你就可以使用任何你喜欢的网络图片库进行配合。

项目地址:https://github.com/saiwu-bigkoo/Android-ConvenientBanner

效果图:

icon

Adapter

1.BaseRecyclerViewAdapterHelper

  1. 优化Adapter代码(减少百分之70%代码)
  2. 添加点击item点击、长按事件、以及item子控件的点击事件
  3. 添加加载动画(一行代码轻松切换5种默认动画)
  4. 添加头部、尾部、下拉刷新、上拉加载(感觉又回到ListView时代)
  5. 设置自定义的加载更多布局
  6. 添加分组(随心定义分组头部)
  7. 自定义不同的item类型(简单配置、无需重写额外方法)
  8. 设置空布局(比Listview的setEmptyView还要好用!)
  9. 添加拖拽item 项目地址:https://github.com/CymChad/BaseRecyclerViewAdapterHelper 效果图: iconiconicon|

2.FlexibleAdapter

一款强大的RecyclerView的adapter,支持ViewHolders动画,拖拽,滑动,取消, 伸缩等 项目地址:https://github.com/davideas/FlexibleAdaptericonicon

Animations

1.Android-SpinKit

Android加载动画库 项目地址:https://github.com/ybq/Android-SpinKit 效果图: icon

2.LoadingDrawable

一些酷炫的android加载动画,可以与任何组件配合使用作为加载的组件或者ProgressBar。

项目地址:https://github.com/dinuscxj/LoadingDrawable

效果图:

icon

Layout

FlowTagLayout

Android流式布局,支持点击、单选、多选等,适合用于产品标签等,用法采用Adapter模式,和ListView、GridView用法一样 项目地址:https://github.com/hanhailong/FlowTag 效果图:

icon

ImageView

1.PhotoView

支持双击或双指缩放的 ImageView,在 ViewPager 等 Scrolling view 中正常使用,相比上面的 AndroidTouchGallery,不仅支持 ViewPager,同时支持单个 ImageView 项目地址:https://github.com/chrisbanes/PhotoView 原理剖析文档:PhotoView

ProgressBar

1.NumberProgressBar

带数字进度的进度条 项目地址:https://github.com/daimajia/NumberProgressBar 效果图: icon

2.MaterialLoadingProgressBar

抽取自 SwipeRefreshLayout 的 Material Design 进度指示器 项目地址:https://github.com/lsjwzh/MaterialLoadingProgressBar 效果图: icon

3.CircleProgressBar

优点

1.继承ProgressBar, 不必关心当前进度状态的保存, ProgressBar 已经在onSaveInstanceState()和 onRestoreInstanceState(Parcelable state)中帮我们写好了。 2.定制性很强,可以设置两种风格的进度条,设置进度条的颜色和进度文本的颜色和大小, 由于代码中对于进度文本的格化化是使用的String.format(), 所以进度文本可以根据需要随意定制 3.代码优雅,代码注释很全面,格式整齐,可以直接在xml中设置相关的属性。 项目地址:https://github.com/dinuscxj/CircleProgressBar 效果图: icon

Button

SwitchButton

状态切换的 Button,类似 iOS,拥有良好的用户界面 项目地址:https://github.com/kyleduo/SwitchButton 效果图: icon

Dialog

1.Android-AlertView

仿iOS的AlertViewController 几乎完美还原iOS 的 AlertViewController ,同时支持Alert和ActionSheet模式,每一个细节都是精雕细琢,并把api封装成懒到极致模式,一行代码就可以进行弹窗. 项目地址:https://github.com/saiwu-bigkoo/Android-AlertView 效果图: icon

2.CanDialog

仿照系统Dialog所写,继承于FrameLayout,添加一些动画,一些显示类型。 项目地址:https://github.com/canyinghao/CanDialog 效果图: icon

EditText

GridPasswordView

模仿支付宝输入密码框 项目地址:https://github.com/Jungerr/GridPasswordView 效果图: icon

TextView

1.ATableView

ios 风格控件

项目地址:https://github.com/dmacosta/ATableView 效果图: icon

2.android-uitableview

ios 风格控件,包括 Button、ListView、TableView 项目地址:https://github.com/Trinea/android-open-project

3.MultiActionTextView

可以分别给 TextView 中的某几个字设置点击事件的 TextView

项目地址:https://github.com/ajaysahani/MultiActionTextView

效果图:

icon

Time View

1.DateTimePicker

日期选择部件(Google Agenda 的样式风格) 项目地址:https://github.com/flavienlaurent/datetimepicker 效果图: icon

2.Week View

日期控件,支持周,天视图,支持自定义样式 项目地址:https://github.com/alamkanak/Android-Week-View 效果图: icon

3.PickerView

仿 iOS 的 PickerView 控件,有时间选择和选项选择并支持一二三级联动效果,TimePopupWindow 时间选择器,支持年月日时分,年月日,时分等格式;OptionsPopupWindow 选项选择器,支持一,二,三级选项选择,并且可以设置是否联动 项目地址:https://github.com/saiwu-bigkoo/Android-PickerView 效果图: icon

Graph View

1.MPAndroidChart

强大的图表绘制工具,支持折线图、面积图、散点图、时间图、柱状图、条图、饼图、气泡图、圆环图、范围(高至低)条形图、网状图等;支持图的拖拽缩放;支持 Android 2.2 以上,支持横纵轴缩放,多指缩放,展现动画、高亮、保存到 sdcard、从文件读取图表 项目地址:https://github.com/PhilJay/MPAndroidChart 效果图: iconicon

2.XCL-Charts

XCL-Charts 基于原生的 Canvas 来绘制各种图表,在设计时,尽量在保证开发效率的同时,给使用者提供足够多的定制化能力。因此使用简便,同时具有相当灵活的定制能力。目前支持 3D/非 3D 柱形图(Bar Chart)、3D/非 3D 饼图(Pie Chart)、堆积图(Stacked Bar Chart)、面积图(Area Chart)、 折线图(Line Chart)、曲线图(Spline Chart)、环形图(Dount Chart)、南丁格尔玫瑰图(Rose Chart)、仪表盘(Dial Chart)、刻度盘(Gauge Chart)、雷达图(Radar Chart)、圆形图(Circle Chart)等图表。其它特性还包括支持图表缩放、手势移动、动画显示效果、高密度柱形显示、图表分界定制线、多图表的混合显示及同数据源不同类型图表切换等。 项目地址:https://github.com/xcltapestry/XCL-Charts

3.android-lockpattern

Android 的图案密码解锁 项目地址: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

NotifyUtil

高仿淘宝,网易新闻,微信,应用宝,环聊等等热门App的通知视图,并且完通知工具类的封装,提供多达8种最常见的App通知接口,支持Android 5.0悬浮式通知样式 项目地址:https://github.com/wenmingvs/NotifyUtil 效果图: icon

StepView

超炫的状态流程 项目地址:https://github.com/baoyachi/StepView 效果图: icon

扁平UI

1.FlatUI

项目地址:https://github.com/eluleci/FlatUI 效果图: icon

2.MaterialDesignLibrary

Material Design Android Library 项目地址:https://github.com/navasmdc/MaterialDesignLibrary

开发插件

根据Gson库使用的要求,将JSONObject格式的String 解析成实体

配合ButterKnife实现注解,从此不用写findViewById,想着就爽啊。在Activity,Fragment,Adapter中选中布局xml的资源id自动生成butterknife注解。

效果图: icon

JavaBean序列化,快速实现Parcelable接口。

显示依赖库中得方法数

在Android Studio中请求、调试接口

效果图: icon

根据xml自动生成style代码的插件

效果图: iconiconicon

通过资源文件命名自动生成Selector文件。

效果图: iconiconicon

在java 6 7中使用 lambda表达式插件

修改编译的jdk为java8:

效果图: icon

添加Material主题到你的AS

效果图: iconiconicon

About

Android 开源项目汇总

Resources

Stars

17 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Android 优秀开源项目汇总


事件总线(订阅者模式)

通过发布/订阅事件解耦事件发送和接受,从而简化应用程序之间的通信

1.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) 支持根据事件类型订阅

**2.Otto 开源组织 Square **

项目地址:https://github.com/square/otto 文档介绍:http://square.github.io/otto/

网络请求

1.Volley 开源组织 Google

项目地址:https://android.googlesource.com/platform/frameworks/volley 文档介绍:http://commondatastorage.googleapis.com/io-2013/presentations/110%20-%20Volley-%20Easy,%20Fast%20Networking%20for%20Android.pdf 特点: (1)库小,Google 维护,提供的网络通信库,使得网络请求更简单、更快速

2.okhttp 开源组织 Square

项目地址: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 缓存减少不必要的请求

3.Retrofit 开源组织 Square

项目地址:https://github.com/square/retrofit 文档介绍:http://square.github.io/retrofit/ 特点: (1)配合Rx.xxx系列使用代码更加简洁

** 4.Asynchronous Http Client for Android **

项目地址:https://github.com/loopj/android-async-http 文档介绍:http://loopj.com/android-async-http/ 特点: (1)异步 Http 请求 (2) 在匿名回调中处理请求结果 (3) 在 UI 线程外进行 http 请求 (4) 文件断点上传 (5) 智能重试 (6) 默认 gzip 压缩 (7) 支持解析成 Json 格式 (8) 可将 Cookies 持久化到 SharedPreferences

图片缓存

1.Android-Universal-Image-Loader

项目地址:https://github.com/nostra13/Android-Universal-Image-Loader 原理剖析文档:Android-Universal-Image-Loader 特点: (1)目前使用最广泛的图片缓存,支持主流图片缓存的绝大多数特性

2.picasso 开源组织 Square

项目地址:https://github.com/square/picasso 文档介绍:http://square.github.io/picasso/ 特点: (1)可以自动检测 adapter 的重用并取消之前的下载 (2)图片变换 (3)可以加载本地资源 (4)可以设置占位资源 (5)支持 debug 模式

3.Cube ImageLoader 开源组织 阿里巴巴一淘

项目地址:https://github.com/etao-open-source/cube-sdk Demo 地址:https://github.com/liaohuqiu/cube-sdk/raw/master/cube-sdk-sample.apk 特点: (1)综合了 Android-Universal-Image-Loader 和 square 等组件优点,简单易用,良好的中文文档支持

**4.fresco 开源组织 Facebook **

项目地址:https://github.com/facebook/fresco 文档介绍:http://frescolib.org/ 特点: (1) 两个内存缓存加上磁盘缓存构成了三级缓存 (2) 支持流式,可以类似网页上模糊渐进式显示图片 (3) 对多帧动画图片支持更好,如 Gif、WebP (4) 更多样的显示,如圆角、进度条、点击重试、自定义对焦点 (5) 更多样的加载,如支持 EXIF、全面支持 WebP (6) 支持 Android 2.3+

5.Glide 作者 bumptech

项目地址:https://github.com/bumptech/glide 特点: (1) GIF 动画的解码 (2) 本地视频剧照的解码 (3) 支持缩略图 (4) Activity 生命周期的集成 (5) 转码的支持 (6) 动画的支持 (7) OkHttp 和 Volley 的支持

数据库

1.greenDAO 作者greenrobot

Android Sqlite orm 的 db 工具类 项目地址:https://github.com/greenrobot/greenDAO 文档介绍:http://greendao-orm.com/documentation/ 特点: (1) 性能佳 (2) 简单易用的 API (3) 内存小好小 (4) 库大小小

**2.ActiveAndroid **

项目地址:https://github.com/pardom/ActiveAndroid 文档介绍:https://github.com/pardom/ActiveAndroid/wiki/_pages

响应式编程Rx.xx

学习Rx.java 资料:https://github.com/lzyzsd/Awesome-RxJava

1.RxJava 开源组织ReactiveX

项目地址:https://github.com/ReactiveX/RxJava

**2.RxAndroid 开源组织ReactiveX **

项目地址:https://github.com/ReactiveX/RxAndroid 特点:RxJava的Android拓展

** 3.rx-preferences **

项目地址: https://github.com/f2prateek/rx-preferences 特点:(1)使SharedPreferences支持RxJava

4.RxBinding 作者JakeWharton

项目地址:https://github.com/JakeWharton/RxBinding 特点:(1)安卓UI控件的RxJava绑定API

5.xBus 作者 mcxiaoke

项目地址:https://github.com/mcxiaoke/xBus 特点:(1)简洁的EventBus实现

6.RxLifecycle 作者 trello

项目地址:https://github.com/trello/RxLifecycle 特点:帮助使用了RxJava的安卓应用控制生命周期

7. sqlbrite 开源组织 square

项目地址: https://github.com/square/sqlbrite 特点:支持RxJava的sqlite数据库

依赖注入

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

1.AndroidAnnotations(Code Diet)

项目地址:https://github.com/excilys/androidannotations 文档介绍:https://github.com/excilys/androidannotations/wiki 官网网址:http://androidannotations.org/ 特点:(1) 依赖注入:包括 view,extras,系统服务,资源等等 (2) 简单的线程模型,通过 annotation 表示方法运行在 ui 线程还是后台线程 (3) 事件绑定:通过 annotation 表示 view 的响应事件,不用在写内部类 (4) REST 客户端:定义客户端接口,自动生成 REST 请求的实现 (5) 没有你想象的复杂:AndroidAnnotations 只是在在编译时生成相应子类 (6) 不影响应用性能:仅 50kb,在编译时完成,不会对运行时有性能影响。

2.butterknife 作者JakeWharton

利用 annotation 帮你快速完成 View 的初始化,减少代码 项目地址:https://github.com/JakeWharton/butterknife 文档介绍:http://jakewharton.github.io/butterknife/

3.Dagger 开源组织square

依赖注入,适用于 Android 和 Java 项目地址:https://github.com/square/dagger 原理剖析文档:Dagger 文档介绍:http://square.github.io/dagger/

4.Dagger2 开源组织Google

项目地址:https://github.com/google/dagger 官网文档:http://google.github.io/dagger/

图片裁剪库

1.Yalantis 出品的强大的图片裁剪库 ,支持缩放,旋转图片,支持各种比例的裁剪框

项目地址:https://github.com/Yalantis/uCrop

效果图:

icon

2.android-crop

图片裁剪 Activity 项目地址:https://github.com/jdamcd/android-crop

效果图:

![icon](/images/screenshot (1).png)

Listview

实现ListItem 点击后置顶并可显示,个性化添加的item的内部View 的ListView

项目地址:https://github.com/s8871404/PopupListView

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

效果图:

icon

RecyclerView

### 1.IndexRecyclerView 实现联系人的功能

1.首字母悬浮在顶部。 2.侧滑删除联系人。 3.联系人索引。 项目地址:https://github.com/jiang111/IndexRecyclerView 效果图: icon

2.RecyclerViewEnhanced

项目地址:https://github.com/nikhilpanju/RecyclerViewEnhanced 效果图: icon

3.RecyclerViewUndoSwipe

项目地址:https://github.com/HoneyNeutrons/RecyclerViewUndoSwipe 效果图: icon

4.UltimateRecyclerView

项目地址:https://github.com/cymcsg/UltimateRecyclerView 效果图: iconiconicon

5.android-advancedrecyclerview

RecyclerView支持各种功能的库

项目地址:https://github.com/h6ah4i/android-advancedrecyclerview

6.SuperSLiM

RecyclerView 的一款layout manager,支持linear,grid以及staggered之间的互换.并支持sticky特性 项目地址:https://github.com/TonicArtos/SuperSLiM 效果图: icon

7.recyclerview-animators

各种动画库, 添加 itemanimator 到 RecyclerView items 项目地址:https://github.com/wasabeef/recyclerview-animators 效果图: iconicon

8.RecyclerViewSwipeDismiss

滑动删除的RecyclerView 项目地址:https://github.com/CodeFalling/RecyclerViewSwipeDismiss 效果图: icon

9.Searchable RecyclerView

利用SearchView实现的RecyclerView搜索效果,并且充分利用了RecyclerView中的item animations 动画 项目地址:https://github.com/Wrdlbrnft/Searchable-RecyclerView-Demo 效果图: icon

10.EasyRecyclerViewSidebar

实现伦敦眼效果的LayoutManager 项目地址:https://github.com/CaMnter/EasyRecyclerViewSidebar 效果图: iconicon

11.ItemTouchHelperDemo

使用ItemTouchHelper实现今日头条 网易新闻 的频道排序、频道移动 项目地址:https://github.com/YoKeyword/ItemTouchHelperDemo 效果图: icon

ViewPager

1.AdvancedPagerSlidingTabStrip

一个完美兼容ViewPager的导航栏组件;可以自定义TabView;能动态加载Tab上的Icon图片; 能显示Tab的消息数量和提示小圆点;支持自定义为微博形式的可滑动tab。

项目地址:https://github.com/HomHomLin/AdvancedPagerSlidingTabStrip

效果图:

icon

2.ConvenientBanner

通用的广告栏控件,让你轻松实现广告头效果。支持无限循环,可以设置自动翻页和时间(而且非常智能,手指触碰则暂停翻页,离开自动开始翻页。你也可以设置在界面onPause的时候不进行自动翻页,onResume之后继续自动翻页),并且提供多种翻页特效。 对比其他广告栏控件,大多都需要对源码进行改动才能加载网络图片,或者帮你集成不是你所需要的图片缓存库。而这个库能让有代码洁癖的你欢喜,不需要对库源码进行修改你就可以使用任何你喜欢的网络图片库进行配合。

项目地址:https://github.com/saiwu-bigkoo/Android-ConvenientBanner

效果图:

icon

Adapter

1.BaseRecyclerViewAdapterHelper

  1. 优化Adapter代码(减少百分之70%代码)
  2. 添加点击item点击、长按事件、以及item子控件的点击事件
  3. 添加加载动画(一行代码轻松切换5种默认动画)
  4. 添加头部、尾部、下拉刷新、上拉加载(感觉又回到ListView时代)
  5. 设置自定义的加载更多布局
  6. 添加分组(随心定义分组头部)
  7. 自定义不同的item类型(简单配置、无需重写额外方法)
  8. 设置空布局(比Listview的setEmptyView还要好用!)
  9. 添加拖拽item 项目地址:https://github.com/CymChad/BaseRecyclerViewAdapterHelper 效果图: iconiconicon|

2.FlexibleAdapter

一款强大的RecyclerView的adapter,支持ViewHolders动画,拖拽,滑动,取消, 伸缩等 项目地址:https://github.com/davideas/FlexibleAdaptericonicon

Animations

1.Android-SpinKit

Android加载动画库 项目地址:https://github.com/ybq/Android-SpinKit 效果图: icon

2.LoadingDrawable

一些酷炫的android加载动画,可以与任何组件配合使用作为加载的组件或者ProgressBar。

项目地址:https://github.com/dinuscxj/LoadingDrawable

效果图:

icon

Layout

FlowTagLayout

Android流式布局,支持点击、单选、多选等,适合用于产品标签等,用法采用Adapter模式,和ListView、GridView用法一样 项目地址:https://github.com/hanhailong/FlowTag 效果图:

icon

ImageView

1.PhotoView

支持双击或双指缩放的 ImageView,在 ViewPager 等 Scrolling view 中正常使用,相比上面的 AndroidTouchGallery,不仅支持 ViewPager,同时支持单个 ImageView 项目地址:https://github.com/chrisbanes/PhotoView 原理剖析文档:PhotoView

ProgressBar

1.NumberProgressBar

带数字进度的进度条 项目地址:https://github.com/daimajia/NumberProgressBar 效果图: icon

2.MaterialLoadingProgressBar

抽取自 SwipeRefreshLayout 的 Material Design 进度指示器 项目地址:https://github.com/lsjwzh/MaterialLoadingProgressBar 效果图: icon

3.CircleProgressBar

优点

1.继承ProgressBar, 不必关心当前进度状态的保存, ProgressBar 已经在onSaveInstanceState()和 onRestoreInstanceState(Parcelable state)中帮我们写好了。 2.定制性很强,可以设置两种风格的进度条,设置进度条的颜色和进度文本的颜色和大小, 由于代码中对于进度文本的格化化是使用的String.format(), 所以进度文本可以根据需要随意定制 3.代码优雅,代码注释很全面,格式整齐,可以直接在xml中设置相关的属性。 项目地址:https://github.com/dinuscxj/CircleProgressBar 效果图: icon

Button

SwitchButton

状态切换的 Button,类似 iOS,拥有良好的用户界面 项目地址:https://github.com/kyleduo/SwitchButton 效果图: icon

Dialog

1.Android-AlertView

仿iOS的AlertViewController 几乎完美还原iOS 的 AlertViewController ,同时支持Alert和ActionSheet模式,每一个细节都是精雕细琢,并把api封装成懒到极致模式,一行代码就可以进行弹窗. 项目地址:https://github.com/saiwu-bigkoo/Android-AlertView 效果图: icon

2.CanDialog

仿照系统Dialog所写,继承于FrameLayout,添加一些动画,一些显示类型。 项目地址:https://github.com/canyinghao/CanDialog 效果图: icon

EditText

GridPasswordView

模仿支付宝输入密码框 项目地址:https://github.com/Jungerr/GridPasswordView 效果图: icon

TextView

1.ATableView

ios 风格控件

项目地址:https://github.com/dmacosta/ATableView 效果图: icon

2.android-uitableview

ios 风格控件,包括 Button、ListView、TableView 项目地址:https://github.com/Trinea/android-open-project

3.MultiActionTextView

可以分别给 TextView 中的某几个字设置点击事件的 TextView

项目地址:https://github.com/ajaysahani/MultiActionTextView

效果图:

icon

Time View

1.DateTimePicker

日期选择部件(Google Agenda 的样式风格) 项目地址:https://github.com/flavienlaurent/datetimepicker 效果图: icon

2.Week View

日期控件,支持周,天视图,支持自定义样式 项目地址:https://github.com/alamkanak/Android-Week-View 效果图: icon

3.PickerView

仿 iOS 的 PickerView 控件,有时间选择和选项选择并支持一二三级联动效果,TimePopupWindow 时间选择器,支持年月日时分,年月日,时分等格式;OptionsPopupWindow 选项选择器,支持一,二,三级选项选择,并且可以设置是否联动 项目地址:https://github.com/saiwu-bigkoo/Android-PickerView 效果图: icon

Graph View

1.MPAndroidChart

强大的图表绘制工具,支持折线图、面积图、散点图、时间图、柱状图、条图、饼图、气泡图、圆环图、范围(高至低)条形图、网状图等;支持图的拖拽缩放;支持 Android 2.2 以上,支持横纵轴缩放,多指缩放,展现动画、高亮、保存到 sdcard、从文件读取图表 项目地址:https://github.com/PhilJay/MPAndroidChart 效果图: iconicon

2.XCL-Charts

XCL-Charts 基于原生的 Canvas 来绘制各种图表,在设计时,尽量在保证开发效率的同时,给使用者提供足够多的定制化能力。因此使用简便,同时具有相当灵活的定制能力。目前支持 3D/非 3D 柱形图(Bar Chart)、3D/非 3D 饼图(Pie Chart)、堆积图(Stacked Bar Chart)、面积图(Area Chart)、 折线图(Line Chart)、曲线图(Spline Chart)、环形图(Dount Chart)、南丁格尔玫瑰图(Rose Chart)、仪表盘(Dial Chart)、刻度盘(Gauge Chart)、雷达图(Radar Chart)、圆形图(Circle Chart)等图表。其它特性还包括支持图表缩放、手势移动、动画显示效果、高密度柱形显示、图表分界定制线、多图表的混合显示及同数据源不同类型图表切换等。 项目地址:https://github.com/xcltapestry/XCL-Charts

3.android-lockpattern

Android 的图案密码解锁 项目地址: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

NotifyUtil

高仿淘宝,网易新闻,微信,应用宝,环聊等等热门App的通知视图,并且完通知工具类的封装,提供多达8种最常见的App通知接口,支持Android 5.0悬浮式通知样式 项目地址:https://github.com/wenmingvs/NotifyUtil 效果图: icon

StepView

超炫的状态流程 项目地址:https://github.com/baoyachi/StepView 效果图: icon

扁平UI

1.FlatUI

项目地址:https://github.com/eluleci/FlatUI 效果图: icon

2.MaterialDesignLibrary

Material Design Android Library 项目地址:https://github.com/navasmdc/MaterialDesignLibrary

开发插件

根据Gson库使用的要求,将JSONObject格式的String 解析成实体

配合ButterKnife实现注解,从此不用写findViewById,想着就爽啊。在Activity,Fragment,Adapter中选中布局xml的资源id自动生成butterknife注解。

效果图: icon

JavaBean序列化,快速实现Parcelable接口。

显示依赖库中得方法数

在Android Studio中请求、调试接口

效果图: icon

根据xml自动生成style代码的插件

效果图: iconiconicon

通过资源文件命名自动生成Selector文件。

效果图: iconiconicon

在java 6 7中使用 lambda表达式插件

修改编译的jdk为java8:

效果图: icon

添加Material主题到你的AS

效果图: iconiconicon

About

Android 开源项目汇总

Resources

Stars

17 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Latest commit

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Android 优秀开源项目汇总


事件总线(订阅者模式)

通过发布/订阅事件解耦事件发送和接受,从而简化应用程序之间的通信

1.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) 支持根据事件类型订阅

**2.Otto 开源组织 Square **

项目地址:https://github.com/square/otto 文档介绍:http://square.github.io/otto/

网络请求

1.Volley 开源组织 Google

项目地址:https://android.googlesource.com/platform/frameworks/volley 文档介绍:http://commondatastorage.googleapis.com/io-2013/presentations/110%20-%20Volley-%20Easy,%20Fast%20Networking%20for%20Android.pdf 特点: (1)库小,Google 维护,提供的网络通信库,使得网络请求更简单、更快速

2.okhttp 开源组织 Square

项目地址: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 缓存减少不必要的请求

3.Retrofit 开源组织 Square

项目地址:https://github.com/square/retrofit 文档介绍:http://square.github.io/retrofit/ 特点: (1)配合Rx.xxx系列使用代码更加简洁

** 4.Asynchronous Http Client for Android **

项目地址:https://github.com/loopj/android-async-http 文档介绍:http://loopj.com/android-async-http/ 特点: (1)异步 Http 请求 (2) 在匿名回调中处理请求结果 (3) 在 UI 线程外进行 http 请求 (4) 文件断点上传 (5) 智能重试 (6) 默认 gzip 压缩 (7) 支持解析成 Json 格式 (8) 可将 Cookies 持久化到 SharedPreferences

图片缓存

1.Android-Universal-Image-Loader

项目地址:https://github.com/nostra13/Android-Universal-Image-Loader 原理剖析文档:Android-Universal-Image-Loader 特点: (1)目前使用最广泛的图片缓存,支持主流图片缓存的绝大多数特性

2.picasso 开源组织 Square

项目地址:https://github.com/square/picasso 文档介绍:http://square.github.io/picasso/ 特点: (1)可以自动检测 adapter 的重用并取消之前的下载 (2)图片变换 (3)可以加载本地资源 (4)可以设置占位资源 (5)支持 debug 模式

3.Cube ImageLoader 开源组织 阿里巴巴一淘

项目地址:https://github.com/etao-open-source/cube-sdk Demo 地址:https://github.com/liaohuqiu/cube-sdk/raw/master/cube-sdk-sample.apk 特点: (1)综合了 Android-Universal-Image-Loader 和 square 等组件优点,简单易用,良好的中文文档支持

**4.fresco 开源组织 Facebook **

项目地址:https://github.com/facebook/fresco 文档介绍:http://frescolib.org/ 特点: (1) 两个内存缓存加上磁盘缓存构成了三级缓存 (2) 支持流式,可以类似网页上模糊渐进式显示图片 (3) 对多帧动画图片支持更好,如 Gif、WebP (4) 更多样的显示,如圆角、进度条、点击重试、自定义对焦点 (5) 更多样的加载,如支持 EXIF、全面支持 WebP (6) 支持 Android 2.3+

5.Glide 作者 bumptech

项目地址:https://github.com/bumptech/glide 特点: (1) GIF 动画的解码 (2) 本地视频剧照的解码 (3) 支持缩略图 (4) Activity 生命周期的集成 (5) 转码的支持 (6) 动画的支持 (7) OkHttp 和 Volley 的支持

数据库

1.greenDAO 作者greenrobot

Android Sqlite orm 的 db 工具类 项目地址:https://github.com/greenrobot/greenDAO 文档介绍:http://greendao-orm.com/documentation/ 特点: (1) 性能佳 (2) 简单易用的 API (3) 内存小好小 (4) 库大小小

**2.ActiveAndroid **

项目地址:https://github.com/pardom/ActiveAndroid 文档介绍:https://github.com/pardom/ActiveAndroid/wiki/_pages

响应式编程Rx.xx

学习Rx.java 资料:https://github.com/lzyzsd/Awesome-RxJava

1.RxJava 开源组织ReactiveX

项目地址:https://github.com/ReactiveX/RxJava

**2.RxAndroid 开源组织ReactiveX **

项目地址:https://github.com/ReactiveX/RxAndroid 特点:RxJava的Android拓展

** 3.rx-preferences **

项目地址: https://github.com/f2prateek/rx-preferences 特点:(1)使SharedPreferences支持RxJava

4.RxBinding 作者JakeWharton

项目地址:https://github.com/JakeWharton/RxBinding 特点:(1)安卓UI控件的RxJava绑定API

5.xBus 作者 mcxiaoke

项目地址:https://github.com/mcxiaoke/xBus 特点:(1)简洁的EventBus实现

6.RxLifecycle 作者 trello

项目地址:https://github.com/trello/RxLifecycle 特点:帮助使用了RxJava的安卓应用控制生命周期

7. sqlbrite 开源组织 square

项目地址: https://github.com/square/sqlbrite 特点:支持RxJava的sqlite数据库

依赖注入

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

1.AndroidAnnotations(Code Diet)

项目地址:https://github.com/excilys/androidannotations 文档介绍:https://github.com/excilys/androidannotations/wiki 官网网址:http://androidannotations.org/ 特点:(1) 依赖注入:包括 view,extras,系统服务,资源等等 (2) 简单的线程模型,通过 annotation 表示方法运行在 ui 线程还是后台线程 (3) 事件绑定:通过 annotation 表示 view 的响应事件,不用在写内部类 (4) REST 客户端:定义客户端接口,自动生成 REST 请求的实现 (5) 没有你想象的复杂:AndroidAnnotations 只是在在编译时生成相应子类 (6) 不影响应用性能:仅 50kb,在编译时完成,不会对运行时有性能影响。

2.butterknife 作者JakeWharton

利用 annotation 帮你快速完成 View 的初始化,减少代码 项目地址:https://github.com/JakeWharton/butterknife 文档介绍:http://jakewharton.github.io/butterknife/

3.Dagger 开源组织square

依赖注入,适用于 Android 和 Java 项目地址:https://github.com/square/dagger 原理剖析文档:Dagger 文档介绍:http://square.github.io/dagger/

4.Dagger2 开源组织Google

项目地址:https://github.com/google/dagger 官网文档:http://google.github.io/dagger/

图片裁剪库

1.Yalantis 出品的强大的图片裁剪库 ,支持缩放,旋转图片,支持各种比例的裁剪框

项目地址:https://github.com/Yalantis/uCrop

效果图:

icon

2.android-crop

图片裁剪 Activity 项目地址:https://github.com/jdamcd/android-crop

效果图:

![icon](/images/screenshot (1).png)

Listview

实现ListItem 点击后置顶并可显示,个性化添加的item的内部View 的ListView

项目地址:https://github.com/s8871404/PopupListView

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

效果图:

icon

RecyclerView

### 1.IndexRecyclerView 实现联系人的功能

1.首字母悬浮在顶部。 2.侧滑删除联系人。 3.联系人索引。 项目地址:https://github.com/jiang111/IndexRecyclerView 效果图: icon

2.RecyclerViewEnhanced

项目地址:https://github.com/nikhilpanju/RecyclerViewEnhanced 效果图: icon

3.RecyclerViewUndoSwipe

项目地址:https://github.com/HoneyNeutrons/RecyclerViewUndoSwipe 效果图: icon

4.UltimateRecyclerView

项目地址:https://github.com/cymcsg/UltimateRecyclerView 效果图: iconiconicon

5.android-advancedrecyclerview

RecyclerView支持各种功能的库

项目地址:https://github.com/h6ah4i/android-advancedrecyclerview

6.SuperSLiM

RecyclerView 的一款layout manager,支持linear,grid以及staggered之间的互换.并支持sticky特性 项目地址:https://github.com/TonicArtos/SuperSLiM 效果图: icon

7.recyclerview-animators

各种动画库, 添加 itemanimator 到 RecyclerView items 项目地址:https://github.com/wasabeef/recyclerview-animators 效果图: iconicon

8.RecyclerViewSwipeDismiss

滑动删除的RecyclerView 项目地址:https://github.com/CodeFalling/RecyclerViewSwipeDismiss 效果图: icon

9.Searchable RecyclerView

利用SearchView实现的RecyclerView搜索效果,并且充分利用了RecyclerView中的item animations 动画 项目地址:https://github.com/Wrdlbrnft/Searchable-RecyclerView-Demo 效果图: icon

10.EasyRecyclerViewSidebar

实现伦敦眼效果的LayoutManager 项目地址:https://github.com/CaMnter/EasyRecyclerViewSidebar 效果图: iconicon

11.ItemTouchHelperDemo

使用ItemTouchHelper实现今日头条 网易新闻 的频道排序、频道移动 项目地址:https://github.com/YoKeyword/ItemTouchHelperDemo 效果图: icon

ViewPager

1.AdvancedPagerSlidingTabStrip

一个完美兼容ViewPager的导航栏组件;可以自定义TabView;能动态加载Tab上的Icon图片; 能显示Tab的消息数量和提示小圆点;支持自定义为微博形式的可滑动tab。

项目地址:https://github.com/HomHomLin/AdvancedPagerSlidingTabStrip

效果图:

icon

2.ConvenientBanner

通用的广告栏控件,让你轻松实现广告头效果。支持无限循环,可以设置自动翻页和时间(而且非常智能,手指触碰则暂停翻页,离开自动开始翻页。你也可以设置在界面onPause的时候不进行自动翻页,onResume之后继续自动翻页),并且提供多种翻页特效。 对比其他广告栏控件,大多都需要对源码进行改动才能加载网络图片,或者帮你集成不是你所需要的图片缓存库。而这个库能让有代码洁癖的你欢喜,不需要对库源码进行修改你就可以使用任何你喜欢的网络图片库进行配合。

项目地址:https://github.com/saiwu-bigkoo/Android-ConvenientBanner

效果图:

icon

Adapter

1.BaseRecyclerViewAdapterHelper

  1. 优化Adapter代码(减少百分之70%代码)
  2. 添加点击item点击、长按事件、以及item子控件的点击事件
  3. 添加加载动画(一行代码轻松切换5种默认动画)
  4. 添加头部、尾部、下拉刷新、上拉加载(感觉又回到ListView时代)
  5. 设置自定义的加载更多布局
  6. 添加分组(随心定义分组头部)
  7. 自定义不同的item类型(简单配置、无需重写额外方法)
  8. 设置空布局(比Listview的setEmptyView还要好用!)
  9. 添加拖拽item 项目地址:https://github.com/CymChad/BaseRecyclerViewAdapterHelper 效果图: iconiconicon|

2.FlexibleAdapter

一款强大的RecyclerView的adapter,支持ViewHolders动画,拖拽,滑动,取消, 伸缩等 项目地址:https://github.com/davideas/FlexibleAdaptericonicon

Animations

1.Android-SpinKit

Android加载动画库 项目地址:https://github.com/ybq/Android-SpinKit 效果图: icon

2.LoadingDrawable

一些酷炫的android加载动画,可以与任何组件配合使用作为加载的组件或者ProgressBar。

项目地址:https://github.com/dinuscxj/LoadingDrawable

效果图:

icon

Layout

FlowTagLayout

Android流式布局,支持点击、单选、多选等,适合用于产品标签等,用法采用Adapter模式,和ListView、GridView用法一样 项目地址:https://github.com/hanhailong/FlowTag 效果图:

icon

ImageView

1.PhotoView

支持双击或双指缩放的 ImageView,在 ViewPager 等 Scrolling view 中正常使用,相比上面的 AndroidTouchGallery,不仅支持 ViewPager,同时支持单个 ImageView 项目地址:https://github.com/chrisbanes/PhotoView 原理剖析文档:PhotoView

ProgressBar

1.NumberProgressBar

带数字进度的进度条 项目地址:https://github.com/daimajia/NumberProgressBar 效果图: icon

2.MaterialLoadingProgressBar

抽取自 SwipeRefreshLayout 的 Material Design 进度指示器 项目地址:https://github.com/lsjwzh/MaterialLoadingProgressBar 效果图: icon

3.CircleProgressBar

优点

1.继承ProgressBar, 不必关心当前进度状态的保存, ProgressBar 已经在onSaveInstanceState()和 onRestoreInstanceState(Parcelable state)中帮我们写好了。 2.定制性很强,可以设置两种风格的进度条,设置进度条的颜色和进度文本的颜色和大小, 由于代码中对于进度文本的格化化是使用的String.format(), 所以进度文本可以根据需要随意定制 3.代码优雅,代码注释很全面,格式整齐,可以直接在xml中设置相关的属性。 项目地址:https://github.com/dinuscxj/CircleProgressBar 效果图: icon

Button

SwitchButton

状态切换的 Button,类似 iOS,拥有良好的用户界面 项目地址:https://github.com/kyleduo/SwitchButton 效果图: icon

Dialog

1.Android-AlertView

仿iOS的AlertViewController 几乎完美还原iOS 的 AlertViewController ,同时支持Alert和ActionSheet模式,每一个细节都是精雕细琢,并把api封装成懒到极致模式,一行代码就可以进行弹窗. 项目地址:https://github.com/saiwu-bigkoo/Android-AlertView 效果图: icon

2.CanDialog

仿照系统Dialog所写,继承于FrameLayout,添加一些动画,一些显示类型。 项目地址:https://github.com/canyinghao/CanDialog 效果图: icon

EditText

GridPasswordView

模仿支付宝输入密码框 项目地址:https://github.com/Jungerr/GridPasswordView 效果图: icon

TextView

1.ATableView

ios 风格控件

项目地址:https://github.com/dmacosta/ATableView 效果图: icon

2.android-uitableview

ios 风格控件,包括 Button、ListView、TableView 项目地址:https://github.com/Trinea/android-open-project

3.MultiActionTextView

可以分别给 TextView 中的某几个字设置点击事件的 TextView

项目地址:https://github.com/ajaysahani/MultiActionTextView

效果图:

icon

Time View

1.DateTimePicker

日期选择部件(Google Agenda 的样式风格) 项目地址:https://github.com/flavienlaurent/datetimepicker 效果图: icon

2.Week View

日期控件,支持周,天视图,支持自定义样式 项目地址:https://github.com/alamkanak/Android-Week-View 效果图: icon

3.PickerView

仿 iOS 的 PickerView 控件,有时间选择和选项选择并支持一二三级联动效果,TimePopupWindow 时间选择器,支持年月日时分,年月日,时分等格式;OptionsPopupWindow 选项选择器,支持一,二,三级选项选择,并且可以设置是否联动 项目地址:https://github.com/saiwu-bigkoo/Android-PickerView 效果图: icon

Graph View

1.MPAndroidChart

强大的图表绘制工具,支持折线图、面积图、散点图、时间图、柱状图、条图、饼图、气泡图、圆环图、范围(高至低)条形图、网状图等;支持图的拖拽缩放;支持 Android 2.2 以上,支持横纵轴缩放,多指缩放,展现动画、高亮、保存到 sdcard、从文件读取图表 项目地址:https://github.com/PhilJay/MPAndroidChart 效果图: iconicon

2.XCL-Charts

XCL-Charts 基于原生的 Canvas 来绘制各种图表,在设计时,尽量在保证开发效率的同时,给使用者提供足够多的定制化能力。因此使用简便,同时具有相当灵活的定制能力。目前支持 3D/非 3D 柱形图(Bar Chart)、3D/非 3D 饼图(Pie Chart)、堆积图(Stacked Bar Chart)、面积图(Area Chart)、 折线图(Line Chart)、曲线图(Spline Chart)、环形图(Dount Chart)、南丁格尔玫瑰图(Rose Chart)、仪表盘(Dial Chart)、刻度盘(Gauge Chart)、雷达图(Radar Chart)、圆形图(Circle Chart)等图表。其它特性还包括支持图表缩放、手势移动、动画显示效果、高密度柱形显示、图表分界定制线、多图表的混合显示及同数据源不同类型图表切换等。 项目地址:https://github.com/xcltapestry/XCL-Charts

3.android-lockpattern

Android 的图案密码解锁 项目地址: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

NotifyUtil

高仿淘宝,网易新闻,微信,应用宝,环聊等等热门App的通知视图,并且完通知工具类的封装,提供多达8种最常见的App通知接口,支持Android 5.0悬浮式通知样式 项目地址:https://github.com/wenmingvs/NotifyUtil 效果图: icon

StepView

超炫的状态流程 项目地址:https://github.com/baoyachi/StepView 效果图: icon

扁平UI

1.FlatUI

项目地址:https://github.com/eluleci/FlatUI 效果图: icon

2.MaterialDesignLibrary

Material Design Android Library 项目地址:https://github.com/navasmdc/MaterialDesignLibrary

开发插件

根据Gson库使用的要求,将JSONObject格式的String 解析成实体

配合ButterKnife实现注解,从此不用写findViewById,想着就爽啊。在Activity,Fragment,Adapter中选中布局xml的资源id自动生成butterknife注解。

效果图: icon

JavaBean序列化,快速实现Parcelable接口。

显示依赖库中得方法数

在Android Studio中请求、调试接口

效果图: icon

根据xml自动生成style代码的插件

效果图: iconiconicon

通过资源文件命名自动生成Selector文件。

效果图: iconiconicon

在java 6 7中使用 lambda表达式插件

修改编译的jdk为java8:

效果图: icon

添加Material主题到你的AS

效果图: iconiconicon

About

Android 开源项目汇总

Resources

Stars

17 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Android 优秀开源项目汇总


事件总线(订阅者模式)

通过发布/订阅事件解耦事件发送和接受,从而简化应用程序之间的通信

1.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) 支持根据事件类型订阅

**2.Otto 开源组织 Square **

项目地址:https://github.com/square/otto 文档介绍:http://square.github.io/otto/

网络请求

1.Volley 开源组织 Google

项目地址:https://android.googlesource.com/platform/frameworks/volley 文档介绍:http://commondatastorage.googleapis.com/io-2013/presentations/110%20-%20Volley-%20Easy,%20Fast%20Networking%20for%20Android.pdf 特点: (1)库小,Google 维护,提供的网络通信库,使得网络请求更简单、更快速

2.okhttp 开源组织 Square

项目地址: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 缓存减少不必要的请求

3.Retrofit 开源组织 Square

项目地址:https://github.com/square/retrofit 文档介绍:http://square.github.io/retrofit/ 特点: (1)配合Rx.xxx系列使用代码更加简洁

** 4.Asynchronous Http Client for Android **

项目地址:https://github.com/loopj/android-async-http 文档介绍:http://loopj.com/android-async-http/ 特点: (1)异步 Http 请求 (2) 在匿名回调中处理请求结果 (3) 在 UI 线程外进行 http 请求 (4) 文件断点上传 (5) 智能重试 (6) 默认 gzip 压缩 (7) 支持解析成 Json 格式 (8) 可将 Cookies 持久化到 SharedPreferences

图片缓存

1.Android-Universal-Image-Loader

项目地址:https://github.com/nostra13/Android-Universal-Image-Loader 原理剖析文档:Android-Universal-Image-Loader 特点: (1)目前使用最广泛的图片缓存,支持主流图片缓存的绝大多数特性

2.picasso 开源组织 Square

项目地址:https://github.com/square/picasso 文档介绍:http://square.github.io/picasso/ 特点: (1)可以自动检测 adapter 的重用并取消之前的下载 (2)图片变换 (3)可以加载本地资源 (4)可以设置占位资源 (5)支持 debug 模式

3.Cube ImageLoader 开源组织 阿里巴巴一淘

项目地址:https://github.com/etao-open-source/cube-sdk Demo 地址:https://github.com/liaohuqiu/cube-sdk/raw/master/cube-sdk-sample.apk 特点: (1)综合了 Android-Universal-Image-Loader 和 square 等组件优点,简单易用,良好的中文文档支持

**4.fresco 开源组织 Facebook **

项目地址:https://github.com/facebook/fresco 文档介绍:http://frescolib.org/ 特点: (1) 两个内存缓存加上磁盘缓存构成了三级缓存 (2) 支持流式,可以类似网页上模糊渐进式显示图片 (3) 对多帧动画图片支持更好,如 Gif、WebP (4) 更多样的显示,如圆角、进度条、点击重试、自定义对焦点 (5) 更多样的加载,如支持 EXIF、全面支持 WebP (6) 支持 Android 2.3+

5.Glide 作者 bumptech

项目地址:https://github.com/bumptech/glide 特点: (1) GIF 动画的解码 (2) 本地视频剧照的解码 (3) 支持缩略图 (4) Activity 生命周期的集成 (5) 转码的支持 (6) 动画的支持 (7) OkHttp 和 Volley 的支持

数据库

1.greenDAO 作者greenrobot

Android Sqlite orm 的 db 工具类 项目地址:https://github.com/greenrobot/greenDAO 文档介绍:http://greendao-orm.com/documentation/ 特点: (1) 性能佳 (2) 简单易用的 API (3) 内存小好小 (4) 库大小小

**2.ActiveAndroid **

项目地址:https://github.com/pardom/ActiveAndroid 文档介绍:https://github.com/pardom/ActiveAndroid/wiki/_pages

响应式编程Rx.xx

学习Rx.java 资料:https://github.com/lzyzsd/Awesome-RxJava

1.RxJava 开源组织ReactiveX

项目地址:https://github.com/ReactiveX/RxJava

**2.RxAndroid 开源组织ReactiveX **

项目地址:https://github.com/ReactiveX/RxAndroid 特点:RxJava的Android拓展

** 3.rx-preferences **

项目地址: https://github.com/f2prateek/rx-preferences 特点:(1)使SharedPreferences支持RxJava

4.RxBinding 作者JakeWharton

项目地址:https://github.com/JakeWharton/RxBinding 特点:(1)安卓UI控件的RxJava绑定API

5.xBus 作者 mcxiaoke

项目地址:https://github.com/mcxiaoke/xBus 特点:(1)简洁的EventBus实现

6.RxLifecycle 作者 trello

项目地址:https://github.com/trello/RxLifecycle 特点:帮助使用了RxJava的安卓应用控制生命周期

7. sqlbrite 开源组织 square

项目地址: https://github.com/square/sqlbrite 特点:支持RxJava的sqlite数据库

依赖注入

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

1.AndroidAnnotations(Code Diet)

项目地址:https://github.com/excilys/androidannotations 文档介绍:https://github.com/excilys/androidannotations/wiki 官网网址:http://androidannotations.org/ 特点:(1) 依赖注入:包括 view,extras,系统服务,资源等等 (2) 简单的线程模型,通过 annotation 表示方法运行在 ui 线程还是后台线程 (3) 事件绑定:通过 annotation 表示 view 的响应事件,不用在写内部类 (4) REST 客户端:定义客户端接口,自动生成 REST 请求的实现 (5) 没有你想象的复杂:AndroidAnnotations 只是在在编译时生成相应子类 (6) 不影响应用性能:仅 50kb,在编译时完成,不会对运行时有性能影响。

2.butterknife 作者JakeWharton

利用 annotation 帮你快速完成 View 的初始化,减少代码 项目地址:https://github.com/JakeWharton/butterknife 文档介绍:http://jakewharton.github.io/butterknife/

3.Dagger 开源组织square

依赖注入,适用于 Android 和 Java 项目地址:https://github.com/square/dagger 原理剖析文档:Dagger 文档介绍:http://square.github.io/dagger/

4.Dagger2 开源组织Google

项目地址:https://github.com/google/dagger 官网文档:http://google.github.io/dagger/

图片裁剪库

1.Yalantis 出品的强大的图片裁剪库 ,支持缩放,旋转图片,支持各种比例的裁剪框

项目地址:https://github.com/Yalantis/uCrop

效果图:

icon

2.android-crop

图片裁剪 Activity 项目地址:https://github.com/jdamcd/android-crop

效果图:

![icon](/images/screenshot (1).png)

Listview

实现ListItem 点击后置顶并可显示,个性化添加的item的内部View 的ListView

项目地址:https://github.com/s8871404/PopupListView

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

效果图:

icon

RecyclerView

### 1.IndexRecyclerView 实现联系人的功能

1.首字母悬浮在顶部。 2.侧滑删除联系人。 3.联系人索引。 项目地址:https://github.com/jiang111/IndexRecyclerView 效果图: icon

2.RecyclerViewEnhanced

项目地址:https://github.com/nikhilpanju/RecyclerViewEnhanced 效果图: icon

3.RecyclerViewUndoSwipe

项目地址:https://github.com/HoneyNeutrons/RecyclerViewUndoSwipe 效果图: icon

4.UltimateRecyclerView

项目地址:https://github.com/cymcsg/UltimateRecyclerView 效果图: iconiconicon

5.android-advancedrecyclerview

RecyclerView支持各种功能的库

项目地址:https://github.com/h6ah4i/android-advancedrecyclerview

6.SuperSLiM

RecyclerView 的一款layout manager,支持linear,grid以及staggered之间的互换.并支持sticky特性 项目地址:https://github.com/TonicArtos/SuperSLiM 效果图: icon

7.recyclerview-animators

各种动画库, 添加 itemanimator 到 RecyclerView items 项目地址:https://github.com/wasabeef/recyclerview-animators 效果图: iconicon

8.RecyclerViewSwipeDismiss

滑动删除的RecyclerView 项目地址:https://github.com/CodeFalling/RecyclerViewSwipeDismiss 效果图: icon

9.Searchable RecyclerView

利用SearchView实现的RecyclerView搜索效果,并且充分利用了RecyclerView中的item animations 动画 项目地址:https://github.com/Wrdlbrnft/Searchable-RecyclerView-Demo 效果图: icon

10.EasyRecyclerViewSidebar

实现伦敦眼效果的LayoutManager 项目地址:https://github.com/CaMnter/EasyRecyclerViewSidebar 效果图: iconicon

11.ItemTouchHelperDemo

使用ItemTouchHelper实现今日头条 网易新闻 的频道排序、频道移动 项目地址:https://github.com/YoKeyword/ItemTouchHelperDemo 效果图: icon

ViewPager

1.AdvancedPagerSlidingTabStrip

一个完美兼容ViewPager的导航栏组件;可以自定义TabView;能动态加载Tab上的Icon图片; 能显示Tab的消息数量和提示小圆点;支持自定义为微博形式的可滑动tab。

项目地址:https://github.com/HomHomLin/AdvancedPagerSlidingTabStrip

效果图:

icon

2.ConvenientBanner

通用的广告栏控件,让你轻松实现广告头效果。支持无限循环,可以设置自动翻页和时间(而且非常智能,手指触碰则暂停翻页,离开自动开始翻页。你也可以设置在界面onPause的时候不进行自动翻页,onResume之后继续自动翻页),并且提供多种翻页特效。 对比其他广告栏控件,大多都需要对源码进行改动才能加载网络图片,或者帮你集成不是你所需要的图片缓存库。而这个库能让有代码洁癖的你欢喜,不需要对库源码进行修改你就可以使用任何你喜欢的网络图片库进行配合。

项目地址:https://github.com/saiwu-bigkoo/Android-ConvenientBanner

效果图:

icon

Adapter

1.BaseRecyclerViewAdapterHelper

  1. 优化Adapter代码(减少百分之70%代码)
  2. 添加点击item点击、长按事件、以及item子控件的点击事件
  3. 添加加载动画(一行代码轻松切换5种默认动画)
  4. 添加头部、尾部、下拉刷新、上拉加载(感觉又回到ListView时代)
  5. 设置自定义的加载更多布局
  6. 添加分组(随心定义分组头部)
  7. 自定义不同的item类型(简单配置、无需重写额外方法)
  8. 设置空布局(比Listview的setEmptyView还要好用!)
  9. 添加拖拽item 项目地址:https://github.com/CymChad/BaseRecyclerViewAdapterHelper 效果图: iconiconicon|

2.FlexibleAdapter

一款强大的RecyclerView的adapter,支持ViewHolders动画,拖拽,滑动,取消, 伸缩等 项目地址:https://github.com/davideas/FlexibleAdaptericonicon

Animations

1.Android-SpinKit

Android加载动画库 项目地址:https://github.com/ybq/Android-SpinKit 效果图: icon

2.LoadingDrawable

一些酷炫的android加载动画,可以与任何组件配合使用作为加载的组件或者ProgressBar。

项目地址:https://github.com/dinuscxj/LoadingDrawable

效果图:

icon

Layout

FlowTagLayout

Android流式布局,支持点击、单选、多选等,适合用于产品标签等,用法采用Adapter模式,和ListView、GridView用法一样 项目地址:https://github.com/hanhailong/FlowTag 效果图:

icon

ImageView

1.PhotoView

支持双击或双指缩放的 ImageView,在 ViewPager 等 Scrolling view 中正常使用,相比上面的 AndroidTouchGallery,不仅支持 ViewPager,同时支持单个 ImageView 项目地址:https://github.com/chrisbanes/PhotoView 原理剖析文档:PhotoView

ProgressBar

1.NumberProgressBar

带数字进度的进度条 项目地址:https://github.com/daimajia/NumberProgressBar 效果图: icon

2.MaterialLoadingProgressBar

抽取自 SwipeRefreshLayout 的 Material Design 进度指示器 项目地址:https://github.com/lsjwzh/MaterialLoadingProgressBar 效果图: icon

3.CircleProgressBar

优点

1.继承ProgressBar, 不必关心当前进度状态的保存, ProgressBar 已经在onSaveInstanceState()和 onRestoreInstanceState(Parcelable state)中帮我们写好了。 2.定制性很强,可以设置两种风格的进度条,设置进度条的颜色和进度文本的颜色和大小, 由于代码中对于进度文本的格化化是使用的String.format(), 所以进度文本可以根据需要随意定制 3.代码优雅,代码注释很全面,格式整齐,可以直接在xml中设置相关的属性。 项目地址:https://github.com/dinuscxj/CircleProgressBar 效果图: icon

Button

SwitchButton

状态切换的 Button,类似 iOS,拥有良好的用户界面 项目地址:https://github.com/kyleduo/SwitchButton 效果图: icon

Dialog

1.Android-AlertView

仿iOS的AlertViewController 几乎完美还原iOS 的 AlertViewController ,同时支持Alert和ActionSheet模式,每一个细节都是精雕细琢,并把api封装成懒到极致模式,一行代码就可以进行弹窗. 项目地址:https://github.com/saiwu-bigkoo/Android-AlertView 效果图: icon

2.CanDialog

仿照系统Dialog所写,继承于FrameLayout,添加一些动画,一些显示类型。 项目地址:https://github.com/canyinghao/CanDialog 效果图: icon

EditText

GridPasswordView

模仿支付宝输入密码框 项目地址:https://github.com/Jungerr/GridPasswordView 效果图: icon

TextView

1.ATableView

ios 风格控件

项目地址:https://github.com/dmacosta/ATableView 效果图: icon

2.android-uitableview

ios 风格控件,包括 Button、ListView、TableView 项目地址:https://github.com/Trinea/android-open-project

3.MultiActionTextView

可以分别给 TextView 中的某几个字设置点击事件的 TextView

项目地址:https://github.com/ajaysahani/MultiActionTextView

效果图:

icon

Time View

1.DateTimePicker

日期选择部件(Google Agenda 的样式风格) 项目地址:https://github.com/flavienlaurent/datetimepicker 效果图: icon

2.Week View

日期控件,支持周,天视图,支持自定义样式 项目地址:https://github.com/alamkanak/Android-Week-View 效果图: icon

3.PickerView

仿 iOS 的 PickerView 控件,有时间选择和选项选择并支持一二三级联动效果,TimePopupWindow 时间选择器,支持年月日时分,年月日,时分等格式;OptionsPopupWindow 选项选择器,支持一,二,三级选项选择,并且可以设置是否联动 项目地址:https://github.com/saiwu-bigkoo/Android-PickerView 效果图: icon

Graph View

1.MPAndroidChart

强大的图表绘制工具,支持折线图、面积图、散点图、时间图、柱状图、条图、饼图、气泡图、圆环图、范围(高至低)条形图、网状图等;支持图的拖拽缩放;支持 Android 2.2 以上,支持横纵轴缩放,多指缩放,展现动画、高亮、保存到 sdcard、从文件读取图表 项目地址:https://github.com/PhilJay/MPAndroidChart 效果图: iconicon

2.XCL-Charts

XCL-Charts 基于原生的 Canvas 来绘制各种图表,在设计时,尽量在保证开发效率的同时,给使用者提供足够多的定制化能力。因此使用简便,同时具有相当灵活的定制能力。目前支持 3D/非 3D 柱形图(Bar Chart)、3D/非 3D 饼图(Pie Chart)、堆积图(Stacked Bar Chart)、面积图(Area Chart)、 折线图(Line Chart)、曲线图(Spline Chart)、环形图(Dount Chart)、南丁格尔玫瑰图(Rose Chart)、仪表盘(Dial Chart)、刻度盘(Gauge Chart)、雷达图(Radar Chart)、圆形图(Circle Chart)等图表。其它特性还包括支持图表缩放、手势移动、动画显示效果、高密度柱形显示、图表分界定制线、多图表的混合显示及同数据源不同类型图表切换等。 项目地址:https://github.com/xcltapestry/XCL-Charts

3.android-lockpattern

Android 的图案密码解锁 项目地址: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

NotifyUtil

高仿淘宝,网易新闻,微信,应用宝,环聊等等热门App的通知视图,并且完通知工具类的封装,提供多达8种最常见的App通知接口,支持Android 5.0悬浮式通知样式 项目地址:https://github.com/wenmingvs/NotifyUtil 效果图: icon

StepView

超炫的状态流程 项目地址:https://github.com/baoyachi/StepView 效果图: icon

扁平UI

1.FlatUI

项目地址:https://github.com/eluleci/FlatUI 效果图: icon

2.MaterialDesignLibrary

Material Design Android Library 项目地址:https://github.com/navasmdc/MaterialDesignLibrary

开发插件

根据Gson库使用的要求,将JSONObject格式的String 解析成实体

配合ButterKnife实现注解,从此不用写findViewById,想着就爽啊。在Activity,Fragment,Adapter中选中布局xml的资源id自动生成butterknife注解。

效果图: icon

JavaBean序列化,快速实现Parcelable接口。

显示依赖库中得方法数

在Android Studio中请求、调试接口

效果图: icon

根据xml自动生成style代码的插件

效果图: iconiconicon

通过资源文件命名自动生成Selector文件。

效果图: iconiconicon

在java 6 7中使用 lambda表达式插件

修改编译的jdk为java8:

效果图: icon

添加Material主题到你的AS

效果图: iconiconicon

About

Android 开源项目汇总

Resources

Stars

17 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Android 优秀开源项目汇总


事件总线(订阅者模式)

通过发布/订阅事件解耦事件发送和接受,从而简化应用程序之间的通信

1.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) 支持根据事件类型订阅

**2.Otto 开源组织 Square **

项目地址:https://github.com/square/otto 文档介绍:http://square.github.io/otto/

网络请求

1.Volley 开源组织 Google

项目地址:https://android.googlesource.com/platform/frameworks/volley 文档介绍:http://commondatastorage.googleapis.com/io-2013/presentations/110%20-%20Volley-%20Easy,%20Fast%20Networking%20for%20Android.pdf 特点: (1)库小,Google 维护,提供的网络通信库,使得网络请求更简单、更快速

2.okhttp 开源组织 Square

项目地址: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 缓存减少不必要的请求

3.Retrofit 开源组织 Square

项目地址:https://github.com/square/retrofit 文档介绍:http://square.github.io/retrofit/ 特点: (1)配合Rx.xxx系列使用代码更加简洁

** 4.Asynchronous Http Client for Android **

项目地址:https://github.com/loopj/android-async-http 文档介绍:http://loopj.com/android-async-http/ 特点: (1)异步 Http 请求 (2) 在匿名回调中处理请求结果 (3) 在 UI 线程外进行 http 请求 (4) 文件断点上传 (5) 智能重试 (6) 默认 gzip 压缩 (7) 支持解析成 Json 格式 (8) 可将 Cookies 持久化到 SharedPreferences

图片缓存

1.Android-Universal-Image-Loader

项目地址:https://github.com/nostra13/Android-Universal-Image-Loader 原理剖析文档:Android-Universal-Image-Loader 特点: (1)目前使用最广泛的图片缓存,支持主流图片缓存的绝大多数特性

2.picasso 开源组织 Square

项目地址:https://github.com/square/picasso 文档介绍:http://square.github.io/picasso/ 特点: (1)可以自动检测 adapter 的重用并取消之前的下载 (2)图片变换 (3)可以加载本地资源 (4)可以设置占位资源 (5)支持 debug 模式

3.Cube ImageLoader 开源组织 阿里巴巴一淘

项目地址:https://github.com/etao-open-source/cube-sdk Demo 地址:https://github.com/liaohuqiu/cube-sdk/raw/master/cube-sdk-sample.apk 特点: (1)综合了 Android-Universal-Image-Loader 和 square 等组件优点,简单易用,良好的中文文档支持

**4.fresco 开源组织 Facebook **

项目地址:https://github.com/facebook/fresco 文档介绍:http://frescolib.org/ 特点: (1) 两个内存缓存加上磁盘缓存构成了三级缓存 (2) 支持流式,可以类似网页上模糊渐进式显示图片 (3) 对多帧动画图片支持更好,如 Gif、WebP (4) 更多样的显示,如圆角、进度条、点击重试、自定义对焦点 (5) 更多样的加载,如支持 EXIF、全面支持 WebP (6) 支持 Android 2.3+

5.Glide 作者 bumptech

项目地址:https://github.com/bumptech/glide 特点: (1) GIF 动画的解码 (2) 本地视频剧照的解码 (3) 支持缩略图 (4) Activity 生命周期的集成 (5) 转码的支持 (6) 动画的支持 (7) OkHttp 和 Volley 的支持

数据库

1.greenDAO 作者greenrobot

Android Sqlite orm 的 db 工具类 项目地址:https://github.com/greenrobot/greenDAO 文档介绍:http://greendao-orm.com/documentation/ 特点: (1) 性能佳 (2) 简单易用的 API (3) 内存小好小 (4) 库大小小

**2.ActiveAndroid **

项目地址:https://github.com/pardom/ActiveAndroid 文档介绍:https://github.com/pardom/ActiveAndroid/wiki/_pages

响应式编程Rx.xx

学习Rx.java 资料:https://github.com/lzyzsd/Awesome-RxJava

1.RxJava 开源组织ReactiveX

项目地址:https://github.com/ReactiveX/RxJava

**2.RxAndroid 开源组织ReactiveX **

项目地址:https://github.com/ReactiveX/RxAndroid 特点:RxJava的Android拓展

** 3.rx-preferences **

项目地址: https://github.com/f2prateek/rx-preferences 特点:(1)使SharedPreferences支持RxJava

4.RxBinding 作者JakeWharton

项目地址:https://github.com/JakeWharton/RxBinding 特点:(1)安卓UI控件的RxJava绑定API

5.xBus 作者 mcxiaoke

项目地址:https://github.com/mcxiaoke/xBus 特点:(1)简洁的EventBus实现

6.RxLifecycle 作者 trello

项目地址:https://github.com/trello/RxLifecycle 特点:帮助使用了RxJava的安卓应用控制生命周期

7. sqlbrite 开源组织 square

项目地址: https://github.com/square/sqlbrite 特点:支持RxJava的sqlite数据库

依赖注入

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

1.AndroidAnnotations(Code Diet)

项目地址:https://github.com/excilys/androidannotations 文档介绍:https://github.com/excilys/androidannotations/wiki 官网网址:http://androidannotations.org/ 特点:(1) 依赖注入:包括 view,extras,系统服务,资源等等 (2) 简单的线程模型,通过 annotation 表示方法运行在 ui 线程还是后台线程 (3) 事件绑定:通过 annotation 表示 view 的响应事件,不用在写内部类 (4) REST 客户端:定义客户端接口,自动生成 REST 请求的实现 (5) 没有你想象的复杂:AndroidAnnotations 只是在在编译时生成相应子类 (6) 不影响应用性能:仅 50kb,在编译时完成,不会对运行时有性能影响。

2.butterknife 作者JakeWharton

利用 annotation 帮你快速完成 View 的初始化,减少代码 项目地址:https://github.com/JakeWharton/butterknife 文档介绍:http://jakewharton.github.io/butterknife/

3.Dagger 开源组织square

依赖注入,适用于 Android 和 Java 项目地址:https://github.com/square/dagger 原理剖析文档:Dagger 文档介绍:http://square.github.io/dagger/

4.Dagger2 开源组织Google

项目地址:https://github.com/google/dagger 官网文档:http://google.github.io/dagger/

图片裁剪库

1.Yalantis 出品的强大的图片裁剪库 ,支持缩放,旋转图片,支持各种比例的裁剪框

项目地址:https://github.com/Yalantis/uCrop

效果图:

icon

2.android-crop

图片裁剪 Activity 项目地址:https://github.com/jdamcd/android-crop

效果图:

![icon](/images/screenshot (1).png)

Listview

实现ListItem 点击后置顶并可显示,个性化添加的item的内部View 的ListView

项目地址:https://github.com/s8871404/PopupListView

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

效果图:

icon

RecyclerView

### 1.IndexRecyclerView 实现联系人的功能

1.首字母悬浮在顶部。 2.侧滑删除联系人。 3.联系人索引。 项目地址:https://github.com/jiang111/IndexRecyclerView 效果图: icon

2.RecyclerViewEnhanced

项目地址:https://github.com/nikhilpanju/RecyclerViewEnhanced 效果图: icon

3.RecyclerViewUndoSwipe

项目地址:https://github.com/HoneyNeutrons/RecyclerViewUndoSwipe 效果图: icon

4.UltimateRecyclerView

项目地址:https://github.com/cymcsg/UltimateRecyclerView 效果图: iconiconicon

5.android-advancedrecyclerview

RecyclerView支持各种功能的库

项目地址:https://github.com/h6ah4i/android-advancedrecyclerview

6.SuperSLiM

RecyclerView 的一款layout manager,支持linear,grid以及staggered之间的互换.并支持sticky特性 项目地址:https://github.com/TonicArtos/SuperSLiM 效果图: icon

7.recyclerview-animators

各种动画库, 添加 itemanimator 到 RecyclerView items 项目地址:https://github.com/wasabeef/recyclerview-animators 效果图: iconicon

8.RecyclerViewSwipeDismiss

滑动删除的RecyclerView 项目地址:https://github.com/CodeFalling/RecyclerViewSwipeDismiss 效果图: icon

9.Searchable RecyclerView

利用SearchView实现的RecyclerView搜索效果,并且充分利用了RecyclerView中的item animations 动画 项目地址:https://github.com/Wrdlbrnft/Searchable-RecyclerView-Demo 效果图: icon

10.EasyRecyclerViewSidebar

实现伦敦眼效果的LayoutManager 项目地址:https://github.com/CaMnter/EasyRecyclerViewSidebar 效果图: iconicon

11.ItemTouchHelperDemo

使用ItemTouchHelper实现今日头条 网易新闻 的频道排序、频道移动 项目地址:https://github.com/YoKeyword/ItemTouchHelperDemo 效果图: icon

ViewPager

1.AdvancedPagerSlidingTabStrip

一个完美兼容ViewPager的导航栏组件;可以自定义TabView;能动态加载Tab上的Icon图片; 能显示Tab的消息数量和提示小圆点;支持自定义为微博形式的可滑动tab。

项目地址:https://github.com/HomHomLin/AdvancedPagerSlidingTabStrip

效果图:

icon

2.ConvenientBanner

通用的广告栏控件,让你轻松实现广告头效果。支持无限循环,可以设置自动翻页和时间(而且非常智能,手指触碰则暂停翻页,离开自动开始翻页。你也可以设置在界面onPause的时候不进行自动翻页,onResume之后继续自动翻页),并且提供多种翻页特效。 对比其他广告栏控件,大多都需要对源码进行改动才能加载网络图片,或者帮你集成不是你所需要的图片缓存库。而这个库能让有代码洁癖的你欢喜,不需要对库源码进行修改你就可以使用任何你喜欢的网络图片库进行配合。

项目地址:https://github.com/saiwu-bigkoo/Android-ConvenientBanner

效果图:

icon

Adapter

1.BaseRecyclerViewAdapterHelper

  1. 优化Adapter代码(减少百分之70%代码)
  2. 添加点击item点击、长按事件、以及item子控件的点击事件
  3. 添加加载动画(一行代码轻松切换5种默认动画)
  4. 添加头部、尾部、下拉刷新、上拉加载(感觉又回到ListView时代)
  5. 设置自定义的加载更多布局
  6. 添加分组(随心定义分组头部)
  7. 自定义不同的item类型(简单配置、无需重写额外方法)
  8. 设置空布局(比Listview的setEmptyView还要好用!)
  9. 添加拖拽item 项目地址:https://github.com/CymChad/BaseRecyclerViewAdapterHelper 效果图: iconiconicon|

2.FlexibleAdapter

一款强大的RecyclerView的adapter,支持ViewHolders动画,拖拽,滑动,取消, 伸缩等 项目地址:https://github.com/davideas/FlexibleAdaptericonicon

Animations

1.Android-SpinKit

Android加载动画库 项目地址:https://github.com/ybq/Android-SpinKit 效果图: icon

2.LoadingDrawable

一些酷炫的android加载动画,可以与任何组件配合使用作为加载的组件或者ProgressBar。

项目地址:https://github.com/dinuscxj/LoadingDrawable

效果图:

icon

Layout

FlowTagLayout

Android流式布局,支持点击、单选、多选等,适合用于产品标签等,用法采用Adapter模式,和ListView、GridView用法一样 项目地址:https://github.com/hanhailong/FlowTag 效果图:

icon

ImageView

1.PhotoView

支持双击或双指缩放的 ImageView,在 ViewPager 等 Scrolling view 中正常使用,相比上面的 AndroidTouchGallery,不仅支持 ViewPager,同时支持单个 ImageView 项目地址:https://github.com/chrisbanes/PhotoView 原理剖析文档:PhotoView

ProgressBar

1.NumberProgressBar

带数字进度的进度条 项目地址:https://github.com/daimajia/NumberProgressBar 效果图: icon

2.MaterialLoadingProgressBar

抽取自 SwipeRefreshLayout 的 Material Design 进度指示器 项目地址:https://github.com/lsjwzh/MaterialLoadingProgressBar 效果图: icon

3.CircleProgressBar

优点

1.继承ProgressBar, 不必关心当前进度状态的保存, ProgressBar 已经在onSaveInstanceState()和 onRestoreInstanceState(Parcelable state)中帮我们写好了。 2.定制性很强,可以设置两种风格的进度条,设置进度条的颜色和进度文本的颜色和大小, 由于代码中对于进度文本的格化化是使用的String.format(), 所以进度文本可以根据需要随意定制 3.代码优雅,代码注释很全面,格式整齐,可以直接在xml中设置相关的属性。 项目地址:https://github.com/dinuscxj/CircleProgressBar 效果图: icon

Button

SwitchButton

状态切换的 Button,类似 iOS,拥有良好的用户界面 项目地址:https://github.com/kyleduo/SwitchButton 效果图: icon

Dialog

1.Android-AlertView

仿iOS的AlertViewController 几乎完美还原iOS 的 AlertViewController ,同时支持Alert和ActionSheet模式,每一个细节都是精雕细琢,并把api封装成懒到极致模式,一行代码就可以进行弹窗. 项目地址:https://github.com/saiwu-bigkoo/Android-AlertView 效果图: icon

2.CanDialog

仿照系统Dialog所写,继承于FrameLayout,添加一些动画,一些显示类型。 项目地址:https://github.com/canyinghao/CanDialog 效果图: icon

EditText

GridPasswordView

模仿支付宝输入密码框 项目地址:https://github.com/Jungerr/GridPasswordView 效果图: icon

TextView

1.ATableView

ios 风格控件

项目地址:https://github.com/dmacosta/ATableView 效果图: icon

2.android-uitableview

ios 风格控件,包括 Button、ListView、TableView 项目地址:https://github.com/Trinea/android-open-project

3.MultiActionTextView

可以分别给 TextView 中的某几个字设置点击事件的 TextView

项目地址:https://github.com/ajaysahani/MultiActionTextView

效果图:

icon

Time View

1.DateTimePicker

日期选择部件(Google Agenda 的样式风格) 项目地址:https://github.com/flavienlaurent/datetimepicker 效果图: icon

2.Week View

日期控件,支持周,天视图,支持自定义样式 项目地址:https://github.com/alamkanak/Android-Week-View 效果图: icon

3.PickerView

仿 iOS 的 PickerView 控件,有时间选择和选项选择并支持一二三级联动效果,TimePopupWindow 时间选择器,支持年月日时分,年月日,时分等格式;OptionsPopupWindow 选项选择器,支持一,二,三级选项选择,并且可以设置是否联动 项目地址:https://github.com/saiwu-bigkoo/Android-PickerView 效果图: icon

Graph View

1.MPAndroidChart

强大的图表绘制工具,支持折线图、面积图、散点图、时间图、柱状图、条图、饼图、气泡图、圆环图、范围(高至低)条形图、网状图等;支持图的拖拽缩放;支持 Android 2.2 以上,支持横纵轴缩放,多指缩放,展现动画、高亮、保存到 sdcard、从文件读取图表 项目地址:https://github.com/PhilJay/MPAndroidChart 效果图: iconicon

2.XCL-Charts

XCL-Charts 基于原生的 Canvas 来绘制各种图表,在设计时,尽量在保证开发效率的同时,给使用者提供足够多的定制化能力。因此使用简便,同时具有相当灵活的定制能力。目前支持 3D/非 3D 柱形图(Bar Chart)、3D/非 3D 饼图(Pie Chart)、堆积图(Stacked Bar Chart)、面积图(Area Chart)、 折线图(Line Chart)、曲线图(Spline Chart)、环形图(Dount Chart)、南丁格尔玫瑰图(Rose Chart)、仪表盘(Dial Chart)、刻度盘(Gauge Chart)、雷达图(Radar Chart)、圆形图(Circle Chart)等图表。其它特性还包括支持图表缩放、手势移动、动画显示效果、高密度柱形显示、图表分界定制线、多图表的混合显示及同数据源不同类型图表切换等。 项目地址:https://github.com/xcltapestry/XCL-Charts

3.android-lockpattern

Android 的图案密码解锁 项目地址: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

NotifyUtil

高仿淘宝,网易新闻,微信,应用宝,环聊等等热门App的通知视图,并且完通知工具类的封装,提供多达8种最常见的App通知接口,支持Android 5.0悬浮式通知样式 项目地址:https://github.com/wenmingvs/NotifyUtil 效果图: icon

StepView

超炫的状态流程 项目地址:https://github.com/baoyachi/StepView 效果图: icon

扁平UI

1.FlatUI

项目地址:https://github.com/eluleci/FlatUI 效果图: icon

2.MaterialDesignLibrary

Material Design Android Library 项目地址:https://github.com/navasmdc/MaterialDesignLibrary

开发插件

根据Gson库使用的要求,将JSONObject格式的String 解析成实体

配合ButterKnife实现注解,从此不用写findViewById,想着就爽啊。在Activity,Fragment,Adapter中选中布局xml的资源id自动生成butterknife注解。

效果图: icon

JavaBean序列化,快速实现Parcelable接口。

显示依赖库中得方法数

在Android Studio中请求、调试接口

效果图: icon

根据xml自动生成style代码的插件

效果图: iconiconicon

通过资源文件命名自动生成Selector文件。

效果图: iconiconicon

在java 6 7中使用 lambda表达式插件

修改编译的jdk为java8:

效果图: icon

添加Material主题到你的AS

效果图: iconiconicon

About

Android 开源项目汇总

Resources

Stars

17 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Latest commit

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Android 优秀开源项目汇总


事件总线(订阅者模式)

通过发布/订阅事件解耦事件发送和接受,从而简化应用程序之间的通信

1.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) 支持根据事件类型订阅

**2.Otto 开源组织 Square **

项目地址:https://github.com/square/otto 文档介绍:http://square.github.io/otto/

网络请求

1.Volley 开源组织 Google

项目地址:https://android.googlesource.com/platform/frameworks/volley 文档介绍:http://commondatastorage.googleapis.com/io-2013/presentations/110%20-%20Volley-%20Easy,%20Fast%20Networking%20for%20Android.pdf 特点: (1)库小,Google 维护,提供的网络通信库,使得网络请求更简单、更快速

2.okhttp 开源组织 Square

项目地址: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 缓存减少不必要的请求

3.Retrofit 开源组织 Square

项目地址:https://github.com/square/retrofit 文档介绍:http://square.github.io/retrofit/ 特点: (1)配合Rx.xxx系列使用代码更加简洁

** 4.Asynchronous Http Client for Android **

项目地址:https://github.com/loopj/android-async-http 文档介绍:http://loopj.com/android-async-http/ 特点: (1)异步 Http 请求 (2) 在匿名回调中处理请求结果 (3) 在 UI 线程外进行 http 请求 (4) 文件断点上传 (5) 智能重试 (6) 默认 gzip 压缩 (7) 支持解析成 Json 格式 (8) 可将 Cookies 持久化到 SharedPreferences

图片缓存

1.Android-Universal-Image-Loader

项目地址:https://github.com/nostra13/Android-Universal-Image-Loader 原理剖析文档:Android-Universal-Image-Loader 特点: (1)目前使用最广泛的图片缓存,支持主流图片缓存的绝大多数特性

2.picasso 开源组织 Square

项目地址:https://github.com/square/picasso 文档介绍:http://square.github.io/picasso/ 特点: (1)可以自动检测 adapter 的重用并取消之前的下载 (2)图片变换 (3)可以加载本地资源 (4)可以设置占位资源 (5)支持 debug 模式

3.Cube ImageLoader 开源组织 阿里巴巴一淘

项目地址:https://github.com/etao-open-source/cube-sdk Demo 地址:https://github.com/liaohuqiu/cube-sdk/raw/master/cube-sdk-sample.apk 特点: (1)综合了 Android-Universal-Image-Loader 和 square 等组件优点,简单易用,良好的中文文档支持

**4.fresco 开源组织 Facebook **

项目地址:https://github.com/facebook/fresco 文档介绍:http://frescolib.org/ 特点: (1) 两个内存缓存加上磁盘缓存构成了三级缓存 (2) 支持流式,可以类似网页上模糊渐进式显示图片 (3) 对多帧动画图片支持更好,如 Gif、WebP (4) 更多样的显示,如圆角、进度条、点击重试、自定义对焦点 (5) 更多样的加载,如支持 EXIF、全面支持 WebP (6) 支持 Android 2.3+

5.Glide 作者 bumptech

项目地址:https://github.com/bumptech/glide 特点: (1) GIF 动画的解码 (2) 本地视频剧照的解码 (3) 支持缩略图 (4) Activity 生命周期的集成 (5) 转码的支持 (6) 动画的支持 (7) OkHttp 和 Volley 的支持

数据库

1.greenDAO 作者greenrobot

Android Sqlite orm 的 db 工具类 项目地址:https://github.com/greenrobot/greenDAO 文档介绍:http://greendao-orm.com/documentation/ 特点: (1) 性能佳 (2) 简单易用的 API (3) 内存小好小 (4) 库大小小

**2.ActiveAndroid **

项目地址:https://github.com/pardom/ActiveAndroid 文档介绍:https://github.com/pardom/ActiveAndroid/wiki/_pages

响应式编程Rx.xx

学习Rx.java 资料:https://github.com/lzyzsd/Awesome-RxJava

1.RxJava 开源组织ReactiveX

项目地址:https://github.com/ReactiveX/RxJava

**2.RxAndroid 开源组织ReactiveX **

项目地址:https://github.com/ReactiveX/RxAndroid 特点:RxJava的Android拓展

** 3.rx-preferences **

项目地址: https://github.com/f2prateek/rx-preferences 特点:(1)使SharedPreferences支持RxJava

4.RxBinding 作者JakeWharton

项目地址:https://github.com/JakeWharton/RxBinding 特点:(1)安卓UI控件的RxJava绑定API

5.xBus 作者 mcxiaoke

项目地址:https://github.com/mcxiaoke/xBus 特点:(1)简洁的EventBus实现

6.RxLifecycle 作者 trello

项目地址:https://github.com/trello/RxLifecycle 特点:帮助使用了RxJava的安卓应用控制生命周期

7. sqlbrite 开源组织 square

项目地址: https://github.com/square/sqlbrite 特点:支持RxJava的sqlite数据库

依赖注入

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

1.AndroidAnnotations(Code Diet)

项目地址:https://github.com/excilys/androidannotations 文档介绍:https://github.com/excilys/androidannotations/wiki 官网网址:http://androidannotations.org/ 特点:(1) 依赖注入:包括 view,extras,系统服务,资源等等 (2) 简单的线程模型,通过 annotation 表示方法运行在 ui 线程还是后台线程 (3) 事件绑定:通过 annotation 表示 view 的响应事件,不用在写内部类 (4) REST 客户端:定义客户端接口,自动生成 REST 请求的实现 (5) 没有你想象的复杂:AndroidAnnotations 只是在在编译时生成相应子类 (6) 不影响应用性能:仅 50kb,在编译时完成,不会对运行时有性能影响。

2.butterknife 作者JakeWharton

利用 annotation 帮你快速完成 View 的初始化,减少代码 项目地址:https://github.com/JakeWharton/butterknife 文档介绍:http://jakewharton.github.io/butterknife/

3.Dagger 开源组织square

依赖注入,适用于 Android 和 Java 项目地址:https://github.com/square/dagger 原理剖析文档:Dagger 文档介绍:http://square.github.io/dagger/

4.Dagger2 开源组织Google

项目地址:https://github.com/google/dagger 官网文档:http://google.github.io/dagger/

图片裁剪库

1.Yalantis 出品的强大的图片裁剪库 ,支持缩放,旋转图片,支持各种比例的裁剪框

项目地址:https://github.com/Yalantis/uCrop

效果图:

icon

2.android-crop

图片裁剪 Activity 项目地址:https://github.com/jdamcd/android-crop

效果图:

![icon](/images/screenshot (1).png)

Listview

实现ListItem 点击后置顶并可显示,个性化添加的item的内部View 的ListView

项目地址:https://github.com/s8871404/PopupListView

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

效果图:

icon

RecyclerView

### 1.IndexRecyclerView 实现联系人的功能

1.首字母悬浮在顶部。 2.侧滑删除联系人。 3.联系人索引。 项目地址:https://github.com/jiang111/IndexRecyclerView 效果图: icon

2.RecyclerViewEnhanced

项目地址:https://github.com/nikhilpanju/RecyclerViewEnhanced 效果图: icon

3.RecyclerViewUndoSwipe

项目地址:https://github.com/HoneyNeutrons/RecyclerViewUndoSwipe 效果图: icon

4.UltimateRecyclerView

项目地址:https://github.com/cymcsg/UltimateRecyclerView 效果图: iconiconicon

5.android-advancedrecyclerview

RecyclerView支持各种功能的库

项目地址:https://github.com/h6ah4i/android-advancedrecyclerview

6.SuperSLiM

RecyclerView 的一款layout manager,支持linear,grid以及staggered之间的互换.并支持sticky特性 项目地址:https://github.com/TonicArtos/SuperSLiM 效果图: icon

7.recyclerview-animators

各种动画库, 添加 itemanimator 到 RecyclerView items 项目地址:https://github.com/wasabeef/recyclerview-animators 效果图: iconicon

8.RecyclerViewSwipeDismiss

滑动删除的RecyclerView 项目地址:https://github.com/CodeFalling/RecyclerViewSwipeDismiss 效果图: icon

9.Searchable RecyclerView

利用SearchView实现的RecyclerView搜索效果,并且充分利用了RecyclerView中的item animations 动画 项目地址:https://github.com/Wrdlbrnft/Searchable-RecyclerView-Demo 效果图: icon

10.EasyRecyclerViewSidebar

实现伦敦眼效果的LayoutManager 项目地址:https://github.com/CaMnter/EasyRecyclerViewSidebar 效果图: iconicon

11.ItemTouchHelperDemo

使用ItemTouchHelper实现今日头条 网易新闻 的频道排序、频道移动 项目地址:https://github.com/YoKeyword/ItemTouchHelperDemo 效果图: icon

ViewPager

1.AdvancedPagerSlidingTabStrip

一个完美兼容ViewPager的导航栏组件;可以自定义TabView;能动态加载Tab上的Icon图片; 能显示Tab的消息数量和提示小圆点;支持自定义为微博形式的可滑动tab。

项目地址:https://github.com/HomHomLin/AdvancedPagerSlidingTabStrip

效果图:

icon

2.ConvenientBanner

通用的广告栏控件,让你轻松实现广告头效果。支持无限循环,可以设置自动翻页和时间(而且非常智能,手指触碰则暂停翻页,离开自动开始翻页。你也可以设置在界面onPause的时候不进行自动翻页,onResume之后继续自动翻页),并且提供多种翻页特效。 对比其他广告栏控件,大多都需要对源码进行改动才能加载网络图片,或者帮你集成不是你所需要的图片缓存库。而这个库能让有代码洁癖的你欢喜,不需要对库源码进行修改你就可以使用任何你喜欢的网络图片库进行配合。

项目地址:https://github.com/saiwu-bigkoo/Android-ConvenientBanner

效果图:

icon

Adapter

1.BaseRecyclerViewAdapterHelper

  1. 优化Adapter代码(减少百分之70%代码)
  2. 添加点击item点击、长按事件、以及item子控件的点击事件
  3. 添加加载动画(一行代码轻松切换5种默认动画)
  4. 添加头部、尾部、下拉刷新、上拉加载(感觉又回到ListView时代)
  5. 设置自定义的加载更多布局
  6. 添加分组(随心定义分组头部)
  7. 自定义不同的item类型(简单配置、无需重写额外方法)
  8. 设置空布局(比Listview的setEmptyView还要好用!)
  9. 添加拖拽item 项目地址:https://github.com/CymChad/BaseRecyclerViewAdapterHelper 效果图: iconiconicon|

2.FlexibleAdapter

一款强大的RecyclerView的adapter,支持ViewHolders动画,拖拽,滑动,取消, 伸缩等 项目地址:https://github.com/davideas/FlexibleAdaptericonicon

Animations

1.Android-SpinKit

Android加载动画库 项目地址:https://github.com/ybq/Android-SpinKit 效果图: icon

2.LoadingDrawable

一些酷炫的android加载动画,可以与任何组件配合使用作为加载的组件或者ProgressBar。

项目地址:https://github.com/dinuscxj/LoadingDrawable

效果图:

icon

Layout

FlowTagLayout

Android流式布局,支持点击、单选、多选等,适合用于产品标签等,用法采用Adapter模式,和ListView、GridView用法一样 项目地址:https://github.com/hanhailong/FlowTag 效果图:

icon

ImageView

1.PhotoView

支持双击或双指缩放的 ImageView,在 ViewPager 等 Scrolling view 中正常使用,相比上面的 AndroidTouchGallery,不仅支持 ViewPager,同时支持单个 ImageView 项目地址:https://github.com/chrisbanes/PhotoView 原理剖析文档:PhotoView

ProgressBar

1.NumberProgressBar

带数字进度的进度条 项目地址:https://github.com/daimajia/NumberProgressBar 效果图: icon

2.MaterialLoadingProgressBar

抽取自 SwipeRefreshLayout 的 Material Design 进度指示器 项目地址:https://github.com/lsjwzh/MaterialLoadingProgressBar 效果图: icon

3.CircleProgressBar

优点

1.继承ProgressBar, 不必关心当前进度状态的保存, ProgressBar 已经在onSaveInstanceState()和 onRestoreInstanceState(Parcelable state)中帮我们写好了。 2.定制性很强,可以设置两种风格的进度条,设置进度条的颜色和进度文本的颜色和大小, 由于代码中对于进度文本的格化化是使用的String.format(), 所以进度文本可以根据需要随意定制 3.代码优雅,代码注释很全面,格式整齐,可以直接在xml中设置相关的属性。 项目地址:https://github.com/dinuscxj/CircleProgressBar 效果图: icon

Button

SwitchButton

状态切换的 Button,类似 iOS,拥有良好的用户界面 项目地址:https://github.com/kyleduo/SwitchButton 效果图: icon

Dialog

1.Android-AlertView

仿iOS的AlertViewController 几乎完美还原iOS 的 AlertViewController ,同时支持Alert和ActionSheet模式,每一个细节都是精雕细琢,并把api封装成懒到极致模式,一行代码就可以进行弹窗. 项目地址:https://github.com/saiwu-bigkoo/Android-AlertView 效果图: icon

2.CanDialog

仿照系统Dialog所写,继承于FrameLayout,添加一些动画,一些显示类型。 项目地址:https://github.com/canyinghao/CanDialog 效果图: icon

EditText

GridPasswordView

模仿支付宝输入密码框 项目地址:https://github.com/Jungerr/GridPasswordView 效果图: icon

TextView

1.ATableView

ios 风格控件

项目地址:https://github.com/dmacosta/ATableView 效果图: icon

2.android-uitableview

ios 风格控件,包括 Button、ListView、TableView 项目地址:https://github.com/Trinea/android-open-project

3.MultiActionTextView

可以分别给 TextView 中的某几个字设置点击事件的 TextView

项目地址:https://github.com/ajaysahani/MultiActionTextView

效果图:

icon

Time View

1.DateTimePicker

日期选择部件(Google Agenda 的样式风格) 项目地址:https://github.com/flavienlaurent/datetimepicker 效果图: icon

2.Week View

日期控件,支持周,天视图,支持自定义样式 项目地址:https://github.com/alamkanak/Android-Week-View 效果图: icon

3.PickerView

仿 iOS 的 PickerView 控件,有时间选择和选项选择并支持一二三级联动效果,TimePopupWindow 时间选择器,支持年月日时分,年月日,时分等格式;OptionsPopupWindow 选项选择器,支持一,二,三级选项选择,并且可以设置是否联动 项目地址:https://github.com/saiwu-bigkoo/Android-PickerView 效果图: icon

Graph View

1.MPAndroidChart

强大的图表绘制工具,支持折线图、面积图、散点图、时间图、柱状图、条图、饼图、气泡图、圆环图、范围(高至低)条形图、网状图等;支持图的拖拽缩放;支持 Android 2.2 以上,支持横纵轴缩放,多指缩放,展现动画、高亮、保存到 sdcard、从文件读取图表 项目地址:https://github.com/PhilJay/MPAndroidChart 效果图: iconicon

2.XCL-Charts

XCL-Charts 基于原生的 Canvas 来绘制各种图表,在设计时,尽量在保证开发效率的同时,给使用者提供足够多的定制化能力。因此使用简便,同时具有相当灵活的定制能力。目前支持 3D/非 3D 柱形图(Bar Chart)、3D/非 3D 饼图(Pie Chart)、堆积图(Stacked Bar Chart)、面积图(Area Chart)、 折线图(Line Chart)、曲线图(Spline Chart)、环形图(Dount Chart)、南丁格尔玫瑰图(Rose Chart)、仪表盘(Dial Chart)、刻度盘(Gauge Chart)、雷达图(Radar Chart)、圆形图(Circle Chart)等图表。其它特性还包括支持图表缩放、手势移动、动画显示效果、高密度柱形显示、图表分界定制线、多图表的混合显示及同数据源不同类型图表切换等。 项目地址:https://github.com/xcltapestry/XCL-Charts

3.android-lockpattern

Android 的图案密码解锁 项目地址: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

NotifyUtil

高仿淘宝,网易新闻,微信,应用宝,环聊等等热门App的通知视图,并且完通知工具类的封装,提供多达8种最常见的App通知接口,支持Android 5.0悬浮式通知样式 项目地址:https://github.com/wenmingvs/NotifyUtil 效果图: icon

StepView

超炫的状态流程 项目地址:https://github.com/baoyachi/StepView 效果图: icon

扁平UI

1.FlatUI

项目地址:https://github.com/eluleci/FlatUI 效果图: icon

2.MaterialDesignLibrary

Material Design Android Library 项目地址:https://github.com/navasmdc/MaterialDesignLibrary

开发插件

根据Gson库使用的要求,将JSONObject格式的String 解析成实体

配合ButterKnife实现注解,从此不用写findViewById,想着就爽啊。在Activity,Fragment,Adapter中选中布局xml的资源id自动生成butterknife注解。

效果图: icon

JavaBean序列化,快速实现Parcelable接口。

显示依赖库中得方法数

在Android Studio中请求、调试接口

效果图: icon

根据xml自动生成style代码的插件

效果图: iconiconicon

通过资源文件命名自动生成Selector文件。

效果图: iconiconicon

在java 6 7中使用 lambda表达式插件

修改编译的jdk为java8:

效果图: icon

添加Material主题到你的AS

效果图: iconiconicon

About

Android 开源项目汇总

Resources

Stars

17 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors