└── README.md
/README.md:
--------------------------------------------------------------------------------
1 | [博客原文链接](http://www.cnblogs.com/jincheng-yangchaofan/articles/7018780.html "Permalink to 2017年Android百大框架排行榜 - 杨超凡_金诚先生 - 博客园")
2 | >说明:
3 | >无聊之时作的一篇笔记式文章,
4 | >精力有限,很多错误之处,受时间与能力限制,没能及时修改,隐隐懊悔,
5 | >受读者启发,遂将此文公之于众,旨在号召大家共同编辑、共同参与,让此排行榜帮助更多的Android开发者。
6 | >
7 | >读者参与方式:
8 | >1.在博客原文站点进行评论,提出对文章内容的修改意见,请务必描述准确。
9 | >2.使用Github的Pull requests,clone本地->重新编辑->提交。请务必核查准确。
10 | >3.提Issues,我每周末会统一解决Issues(这种会影响关注者的时间线,最末推荐)。
11 |
12 |
13 | > #
框架:提供一定能力的小段程序
14 |
15 |
16 | # 一.榜单介绍
17 |
18 |
排行榜包括四大类:
19 |
20 |
单一框架:仅提供路由、网络层、UI层、通信层或其他**单一功能**的框架
21 |
22 |
混合开发框架:提供开发**hybrid app、h5与webview结合能力、web app能力**的框架
23 |
24 |
企业级开源项目:可以独立运行的app,有极高的学习价值、思路借鉴意义
25 |
26 |
书籍类开源项目:类似Open-sourc-project这样的导航类项目;大型公司的Android课程的学习目录 tips
27 |
28 |
榜单排序依据:
29 |
30 |
1.项目开源
31 |
32 |
2.github上该项目的star个数
33 |
34 |
3.开发团队、作者的实力
35 |
36 | 为了保证榜单内容的多样性,榜单上尽可能的不重复同类型框架(比如多款listview增强框架)
37 |
38 |
适用读者范围:
39 |
40 | *
正在入门Android的新手~~~Android初级开发工程师 初出茅庐
41 |
42 |
**熟读**《书籍导航类项目排行榜》,勤加练习进步会更大;**编译运行并动脑思考**《企业级开源项目》中的案例,可以提升开发完整项目的能力;;**略读**《框架百大排行榜》,最大的作用是的是拓展视野,可以看到很多时下流行的名词概念术语
43 |
44 | *
Android初级开发工程师~~~中级开发工程师 知其然知其所以然
45 |
46 |
熟练、快速、高效的默写出《企业级开源项目》中的(自己感兴趣)典型案例,对提高书写代码的自信,提升项目功能整体设计能力;深究《框架百大排行榜》排名靠前框架的**原理**,会让自己在与家人、同事、同学聚会之时多了一些炫耀的资本;如果你能熟练运用《框架百大排行榜》里所提到的框架,在遇到某种需求的时候,立刻会拿出**“最优秀的框架”**去解决,意味着你离中级工程师不太远了
47 |
48 | *
中级、高级、资深工程师 知其然知其不可然
49 |
50 |
《框架百大排行榜》里所提到的流行词、流行术语——使用能力、融会贯通其原理、讲解框架能力的高低,将让你不断的在这三个级别徘徊;
51 |
52 |
会有意识的合并榜单里多款同类型框架,来弥补单一框架的某些缺陷,比如将同为网络请求框架的Volley和Okhttp封装到一起应对不同场面的需求;
53 |
54 |
会有意识的二次开发、修改源码来扩展榜单所提到的大型框架;
55 |
56 |
能够在开发团队里推动、部署某些框架的能力——比如要在一个新加入的陌生团队说服leader和项目成员使用热更新、插件化、组件化、hybrid 开发等多种开发模式,你是否有这个实力?
57 |
58 |
59 |
60 |
框架名次越靠前,值得使用的优先级就越高、研究原理得到的收获会更多、对读者启发的价值就越大
61 |
62 | # 二.百大框架排行榜
63 |
64 | 快速索引
65 |
66 | |框架名称 | 上榜关键字 |
67 | | -------- | ----- |
68 | | 1.Retrofit | 网络 |
69 | | 2.okhttp | 网络 |
70 | | 3.Butter Knife | 代码模板 |
71 | | 4.MPAndroidChart | 图表 |
72 | |5.Glide | 图片 |
73 | |6.leakcanary | 内存 |
74 | | 7.Android-Universal-Image-Loader | 图片 |
75 | |8.EventBus | 事件消息 |
76 | | 9.zxing | 条码扫描 |
77 | |10.picasso | 图片 |
78 | |11.lottie-android | 动画 |
79 | | 12.fresco | 图片 |
80 | | 13.RxAndroid | 异步 |
81 | | 14.SlidingMenu | 菜单 |
82 | |15.PhotoView | 图片 |
83 | | 16.material-dialogs | UI |
84 | | 17.android-async-http | 网络 |
85 | | 18.androidannotations |注解|
86 | | 19.fastjson | json |
87 | | 20.Material-Animations | 动画 |
88 | | 21.tinker | 热修复|
89 | | 22.ViewPagerIndicator | UI|
90 | | 23.Android-CleanArchitecture | 架构|
91 | | 24.Android-PullToRefresh | 刷新|
92 | | 25.flexbox-layout | UI|
93 | | 26.AndroidSwipeLayout | UI|
94 | | 27.realm-java | 数据库|
95 | | 28.greenDAO | 数据|
96 | | 29.stetho | 调试|
97 | | 30.BaseRecyclerViewAdapterHelper | UI|
98 | | 31.AndroidViewAnimations | 动画|
99 | | 32.MaterialDrawer | 菜单|
100 | | 33.Android-ObservableScrollView | UI|
101 | | 34.CircleImageView | 图片|
102 | | 35.logger | 调试|
103 | | 32.MaterialDrawer | 菜单|
104 | | 36.agera | 异步|
105 | | 37.BottmBar | 菜单|
106 | | 38.Calligraphy | 字体|
107 | | 39.AndroidSlidingUpPanel | UI|
108 | | 40.AppIntro | UI|
109 | | 41.recyclerview-animators | 动画|
110 | | 42.dagger | 依赖注入|
111 | | 43.Android-Bootstarp | UI|
112 | | 44.RxBinding | 响应式|
113 | | 45.ListViewAnimations | 动画|
114 | | 46.UItimateRecyclerView | 图片|
115 | | 47.uCrop | UI|
116 | | 48.RxJava-Android-Samples |用例|
117 | | 49.AndroidAutoLayout | 适配|
118 | | 50.EffectiveAndroidUI | 性能|
119 | |51.Luban | 图片|
120 | | 52.DroidPlugin | 插件化|
121 | | 53.otto | 响应式|
122 | |54.u2020 | 用例|
123 | | 55.buck | 构建|
124 | | 56.PermissionsDispatcher |权限|
125 | | 57.android-gif-drawable | GIF|
126 | |58.Apktool | 反编译|
127 | | 59.dynamic-load-apk | 插件化|
128 | |60.atlas | 插件化|
129 | | 61.volley | 网络|
130 | | 62.androidmvp | 用例|
131 | | 63.SwipeBackLayout | 手势|
132 | | 64.FlycoTabLayout | UI|
133 | |65.android-testing | 测试|
134 | |66.FileDownloader | 下载|
135 | |67.JieCaoVideoPlayer | 多媒体|
136 | |68.glide-transformations | 图片|
137 | |69.android-gpuimage | 图片|
138 | |70.RxPermissions | 权限|
139 | |71.freeline | 编译|
140 | |72.RxLifecycle | 生命周期|
141 | |73.classyshark | 反编译|
142 | |74.acra | 崩溃日志|
143 | |75.DiskLruCache | 文件|
144 | |76.dexposed | 热修复|
145 | |77.Litho | 性能|
146 | |78.mosby | MVP|
147 | |79.AndResGuard | 混淆|
148 | |80.StatusBarUtil | 状态栏|
149 | |81.robolectric | 测试|
150 | |82.Fragmentation | 嵌套|
151 | |83.Small | 插件化|
152 | |84.JsBridge | hybrid|
153 | |85.richeditor-android | UI|
154 | |86.Transitions-Everywhere | 动画|
155 | |87.android-viewbadger | 勋章|
156 | |88.AndroidWiFiADB | 调试|
157 | |89.emojicon | 表情包|
158 | |90.packer-ng-plugin | 多渠道|
159 | |91.android-priority-jobqueue | 多线程|
160 | |92.Android-Debug-Database | 调试|
161 | |93.conceal|加密|
162 | |94.ARouter | 页面路由|
163 | |95.MagicaSakura | 多主题|
164 | |89.96.CustomActivityOnCrash | 崩溃|
165 | |97.XhsEmoticonsKeyboard | 键盘|
166 |
167 |
168 |
169 |
170 |
171 | ## 1\. Retrofit
172 |
173 |
一句话介绍:Retrofit是一款类型安全的网络框架,基于HTTP协议,服务于Android和java语言
174 |
175 |
上榜理由:Retrofit以21.8k的stars量雄踞github中android子标题榜首,第一当之无愧。
176 |
177 |
官网地址 [http://square.github.io/retrofit/](http://square.github.io/retrofit/)
178 |
179 |
github https://github.com/square/retrofit
180 |
181 |
作者:square团队
182 |
183 |
使用:
184 |
185 |
186 |
187 |
compile 'com.squareup.retrofit2:retrofit:2.3.0'
188 |
189 |
190 |
191 | ## 2.okhttp
192 |
193 |
一句话介绍:okhttp是一款基于HTTP和HTTP2.0协议的网络框架,服务于java和android客户端
194 |
195 |
上榜理由,okhttp以20.4k的stars量雄踞github中android子标题第二名。大型公司比如淘宝也封装的是okhttp。Retrofit2.0开始内置okhttp框架,Retrofit专注封装接口完成业务需求,okhttp专注网络请求的安全高效,笔者将两者区分开,是想让后来学习者知道,这是两套框架,学习框架原理时可以分开学习,以免理解混乱。
196 |
197 |
官网地址 [http://square.github.io/okhttp/](https://github.com/JakeWharton/butterknife)
198 |
199 |
github [https://github.com/square/okhttp](https://github.com/square/okhttp)
200 |
201 |
作者:square团队
202 |
203 |
使用:
204 |
205 |
206 |
207 |
compile 'com.squareup.okhttp3:okhttp:3.8.0'
208 |
209 |
210 |
211 | ## 3.Butter Knife
212 |
213 |
一句话介绍:Butter Knife所提供了一种能力——使用注解生成模板代码,将view与方法和参数绑定。
214 |
215 |
上榜理由:github上16.5K个star,配合Androidstudio提供的Butter Knife插件,帮助开发者省却了频繁findviewbyid的烦恼,最新的Butter Knife还提供了onclick绑定以及字符串的初始化,初学者可以查阅Butter Knife以及Butter Knife插件进一步学习!
216 |
217 |
官网地址:[http://jakewharton.github.io/butterknife/](http://jakewharton.github.io/butterknife/)
218 |
219 |
github:[https://github.com/JakeWharton/butterknife](https://github.com/JakeWharton/butterknife)
220 |
221 |
作者:JakeWharton ,也是square团队成员之一
222 |
223 |
使用:
224 |
225 |
226 |
227 |
dependencies {
228 | compile 'com.jakewharton:butterknife:8.6.0' annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0' }
229 |
230 |
231 |
232 | ## 4.MPAndroidChart
233 |
234 |
一句话介绍:MPAndroidChart是一款图表框架
235 |
236 |
上榜理由:github上16.1K个star,以快速、简洁。强大著称的图表框架
237 |
238 |
官网地址 [https://github.com/PhilJay/MPAndroidChart](https://github.com/PhilJay/MPAndroidChart)
239 |
240 |
github https://github.com/PhilJay/MPAndroidChart
241 |
242 |
作者:PhilJay
243 |
244 |
使用:
245 |
246 |
1\. 在AS中加入Gradle依赖
247 |
248 | *
在根目录的 `build.gradle上加入`:
249 | *
250 |
251 |
allprojects {
252 | repositories {
253 | maven { url "https://jitpack.io" }
254 | }
255 | }
256 |
257 |
258 |
259 | *
在app的build.gradle上加入:
260 | *
261 |
262 |
dependencies {
263 | compile 'com.github.PhilJay:MPAndroidChart:v3.0.2' }
264 |
265 |
266 |
267 | ## 5\. glide
268 |
269 |
一句话介绍:glide是一款专注于提供**流畅划动能力**的“图片加载和缓存框架”
270 |
271 |
上榜理由:15.9k个star,图片加载类框架排名第一的框架,google 在2014开发者大会上演示的camera app就是基于gilde框架开发的
272 |
273 |
github [https://github.com/bumptech/glide](https://github.com/bumptech/glide)
274 |
275 |
作者 Bump Technologies团队
276 |
277 |
使用:
278 |
279 |
280 |
281 |
[](javascript:void(0); "复制代码")
282 |
283 |
repositories {
284 | mavenCentral()
285 | }
286 |
287 | dependencies {
288 | compile 'com.github.bumptech.glide:glide:3.8.0' compile 'com.android.support:support-v4:19.1.0' }
289 |
290 |
[](javascript:void(0); "复制代码")
291 |
292 |
293 |
294 | ## 6.leakcanary
295 |
296 |
一句话介绍:一款内存检测框架,服务于java和android客户端
297 |
298 |
上榜理由:方便,简洁是leakcanary最大的特点,只需在应用的apllication中集成,就可以直接使用它;15.5k个star说明了它有多么受欢迎
299 |
300 |
github https://github.com/square/leakcanary
301 |
302 |
作者 square团队
303 |
304 |
使用:
305 |
306 |
307 |
308 |
dependencies {
309 | debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1' releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1' testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1' }
310 |
311 |
312 |
313 |
在 `Application` 中写入:
314 |
315 |
316 |
317 |
[](javascript:void(0); "复制代码")
318 |
319 |
public class ExampleApplication extends Application {
320 |
321 | @Override public void onCreate() {
322 | super.onCreate(); if (LeakCanary.isInAnalyzerProcess(this)) { // This process is dedicated to LeakCanary for heap analysis. // You should not init your app in this process.
323 | return;
324 | }
325 | LeakCanary.install(this); // Normal app init code...
326 | }
327 | }
328 |
329 |
[](javascript:void(0); "复制代码")
330 |
331 |
332 |
333 | ## 7.Android-Universal-Image-Loader
334 |
335 |
一句话介绍:曾经的图片加载框架王者,android开发老手都用过它
336 |
337 |
上榜理由:android端图片加载框架的老大哥了,15.3k个star足以证明它的热门,UIL与gilde最大区别是可定制,UIL提供了大量配置方式,图片加载状态的回调(成功,失败,进行中),加载动画等;以及提供了移动端图片加载框架的缓存思路:三级缓存策略 sd卡-内存-网络;值得注意的是,UIL以及两年未更新了,但笔者仍推荐各位使用!
338 |
339 |
github [https://github.com/nostra13/Android-Universal-Image-Loader](https://github.com/nostra13/Android-Universal-Image-Loader)
340 |
341 |
作者 nostra13
342 |
343 |
使用:
344 |
345 |
下载地址 [universal-image-loader-1.9.5.jar](https://github.com/nostra13/Android-Universal-Image-Loader/raw/master/downloads/universal-image-loader-1.9.5.jar)
346 |
347 |
348 |
349 | ## 8.EventBus
350 |
351 |
一句话介绍:EventBus是一款本地组件间通信框架
352 |
353 |
上榜理由:组件间通信框架star量第一:14.8k,在大型项目的Activities,fragments,Threads,Services都可以看到它的使用场景,尽管EventBus在向未创建的组件传递事件时有些局限,仅适合在“活着的”组件间传递消息,但仍不妨碍它活跃在各个大型项目各个场景里。
354 |
355 |
官网地址 [http://greenrobot.org/eventbus/documentation/how-to-get-started/](http://greenrobot.org/eventbus/documentation/how-to-get-started/)
356 |
357 |
github [https://github.com/greenrobot/EventBus](https://github.com/greenrobot/EventBus)
358 |
359 |
作者 greenrobot
360 |
361 |
使用:
362 |
363 |
364 |
365 |
compile 'org.greenrobot:eventbus:3.0.0'
366 |
367 |
368 |
369 | ## 9.zxing
370 |
371 |
一句话介绍:条码图像处理库
372 |
373 |
上榜理由:如果你用过二维码,你肯定已经间接使用过大名鼎鼎的zxing了。13.9K的star量,让它排在本榜单第九,实至名归,如果你有了解二维码的需求,不妨从了解、修改它源码入手。
374 |
375 |
github [ https://github.com/zxing/zxing](https://github.com/zxing/zxing)
376 |
377 |
作者 Sean Owen
378 |
379 | ## 10.picasso
380 |
381 |
一句话介绍:强力的图片下载、缓存框架
382 |
383 |
上榜理由:本榜单出现的第三款图片类框架,不同的是picasso更强调图片下载,你可以将picasso集成进你的项目中,你也可以结合gilde和UIL与picasso,三者一齐封装至你的项目中,按需所用。
384 |
385 |
官网地址 [http://square.github.io/picasso/](http://square.github.io/picasso/)
386 |
387 |
github [https://github.com/square/picasso](https://github.com/square/picasso)
388 |
389 |
作者 square团队
390 |
391 |
使用:
392 |
393 |
394 |
395 |
compile 'com.squareup.picasso:picasso:2.5.2'
396 |
397 |
398 |
399 |
或者下载
400 |
401 |
[jar包](https://search.maven.org/remote_content?g=com.squareup.picasso&a=picasso&v=LATEST)
402 |
403 | ## 11.lottie-android
404 |
405 |
一句话介绍:一款可以在Android端快速展示Adobe Afeter Effect(AE)工具所作动画的框架
406 |
407 |
上榜理由:动画类框架第一名,github上13.3k个star证明了他的优越性,利用json文件快速实现动画效果是它最大的便利,而这个json文件也是由Adobe提供的After Effects(AE)工具制作的,在AE中装一个Bodymovin的插件,使用这个插件最终将动画效果生成json文件,这个json文件即可由LottieAnimationView解析并生成绚丽的动画效果。而且它还支持跨平台哟。
408 |
409 |
github [https://github.com/airbnb/lottie-android](https://github.com/airbnb/lottie-android)
410 |
411 |
作者:Airbnb 团队
412 |
413 | ## 12.fresco
414 |
415 |
一句话介绍:一款可以管理图片内存的框架
416 |
417 |
上榜理由:github上12.8k个star,图片类排行榜第四名,facebook的出身证明了它并非是重复造的轮子,在管理图片内存领域上有着它的一片天地,渐进式加载、加载gif都是它与前三位相比独有的特性
418 |
419 |
官网地址: [https://www.fresco-cn.org/](https://www.fresco-cn.org/)
420 |
421 |
github [https://github.com/facebook/fresco](https://github.com/facebook/fresco)
422 |
423 |
作者 facebook
424 |
425 |
使用:
426 |
427 |
428 |
429 |
dependencies { // 其他依赖
430 | compile 'com.facebook.fresco:fresco:0.12.0' }
431 |
432 |
433 |
434 |
下面的依赖需要根据需求添加:
435 |
436 |
437 |
438 |
[](javascript:void(0); "复制代码")
439 |
440 |
dependencies { // 在 API < 14 上的机器支持 WebP 时,需要添加
441 | compile 'com.facebook.fresco:animated-base-support:0.12.0'
442 |
443 | // 支持 GIF 动图,需要添加
444 | compile 'com.facebook.fresco:animated-gif:0.12.0'
445 |
446 | // 支持 WebP (静态图+动图),需要添加
447 | compile 'com.facebook.fresco:animated-webp:0.12.0' compile 'com.facebook.fresco:webpsupport:0.12.0'
448 |
449 | // 仅支持 WebP 静态图,需要添加
450 | compile 'com.facebook.fresco:webpsupport:0.12.0' }
451 |
452 |
[](javascript:void(0); "复制代码")
453 |
454 |
455 |
456 | ## 13.RxAndroid
457 |
458 |
一句话介绍:一款Android客户端组件间异步通信的框架
459 |
460 |
上榜理由:github上12.7k个star,位居组件通信框架的第二名,仅在EventBus之后,如果要问两者的区别,Eventbus是用来取代组件间繁琐的interface,RxAndroid是用来取代AnsyTask的,并不冲突;当然RxAndroid的优点并不仅限于此,更多优雅的实现,可以去官网查阅!
461 |
462 |
github [https://github.com/ReactiveX/RxAndroid](https://github.com/ReactiveX/RxAndroid)
463 |
464 |
作者 JakeWharton
465 |
466 |
使用:
467 |
468 |
469 |
470 |
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
471 | compile 'io.reactivex.rxjava2:rxjava:2.1.0'
472 |
473 |
474 |
475 | ## 14.SlidingMenu
476 |
477 |
一句话介绍:侧滑菜单栏框架
478 |
479 |
上榜理由:与Userval-Image-loader 齐名的上古神器框架——为你的app提供侧滑菜单栏的功能;github闪更有10.5k个star,证明了它的经久不衰,即使在Google推出了NavigationDrawer,仍然没有减少开发者对SildingMenu的拥簇,经典总是经得起考验的,这个上古神兽已经四年没有更新了;有太多太多的app使用过它,这些都可以在软件的开源许可上看到!
480 |
481 |
github [https://github.com/jfeinstein10/SlidingMenu](https://github.com/jfeinstein10/SlidingMenu)
482 |
483 |
作者 Jeremy Feinstein
484 |
485 |
使用:
486 |
487 |
在gihub上fork源码,集成进项目中
488 |
489 | ## 15.PhotoView
490 |
491 |
一句话介绍:一款ImageView展示框架,支持缩放,响应手势
492 |
493 |
上榜理由:10.3k的star数量,位于图片类框架排行榜第五位,PhotoView与前四位不同的是这次带来的是图片的展示能力,你一定好奇微信的头像点击放大是如何实现的,很多App的图片显示响应手势按压是如何实现的,了解PhotoView,你一定会开心的!(笔者也不会告诉你ImageView的点击放大效果在Android的sample也有)
494 |
495 |
github [https://github.com/chrisbanes/PhotoView](https://github.com/chrisbanes/PhotoView)
496 |
497 |
作者:chrisbanes
498 |
499 |
使用:
500 |
501 |
502 |
503 |
[](javascript:void(0); "复制代码")
504 |
505 |
在app根目录的build.gradle中加入:
506 | allprojects {
507 | repositories {
508 | maven { url "https://jitpack.io" }
509 | }
510 | }
511 | 在app的module目录的build.gralde中加入:
512 |
513 | dependencies {
514 | compile 'com.github.chrisbanes:PhotoView:latest.release.here' }
515 |
516 |
[](javascript:void(0); "复制代码")
517 |
518 |
519 |
520 |
使用
521 |
522 |
523 |
524 |
[](javascript:void(0); "复制代码")
525 |
526 |
<com.github.chrisbanes.photoview.PhotoView
527 | android:id="@+id/photo_view" android:layout_width="match_parent" android:layout_height="match_parent"/>
528 |
529 | PhotoView photoView = (PhotoView) findViewById(R.id.photo_view);
530 | photoView.setImageResource(R.drawable.image);
531 |
532 |
[](javascript:void(0); "复制代码")
533 |
534 |
535 |
536 | ## 16.material-dialogs
537 |
538 |
一句话介绍:一款自定义dialog框架
539 |
540 |
上榜理由:9.9k个star,也是继PhotoView,SlidingMenu之后第三款自定义View框架,也许你还是自定义View的新人,对Dialog使用的还有点生疏,你可以通过它提升你的Dilaog使用能力
541 |
542 |
github [https://github.com/afollestad/material-dialogs](https://github.com/afollestad/material-dialogs)
543 |
544 |
作者:Aidan Follestad
545 |
546 |
使用:
547 |
548 |
549 |
550 |
dependencies { // ... other dependencies here
551 | compile 'com.afollestad.material-dialogs:core:0.9.4.5'
552 | }
553 |
554 |
555 |
556 | ## 17.Adroid-async-http
557 |
558 |
一句话介绍:一款基于Http协议的异步请求的网络框架,
559 |
560 |
上榜理由:虽然你有无数个使用retrofit+okhttp的理由,但9.8k个star,证明它仍然值得你深入学习。值得注意的是,它也已经有两年没更新了,你尽管拿去当你懒惰的理由!
561 |
562 |
github [https://github.com/loopj/android-async-http](https://github.com/loopj/android-async-http)
563 |
564 |
作者:James Smith
565 |
566 |
使用:
567 |
568 |
569 |
570 |
[](javascript:void(0); "复制代码")
571 |
572 |
repositories {
573 | maven {
574 | url 'https://oss.sonatype.org/content/repositories/snapshots/' }
575 | }
576 | dependencies {
577 | compile 'com.loopj.android:android-async-http:1.5.0-SNAPSHOT' }
578 |
579 |
[](javascript:void(0); "复制代码")
580 |
581 |
582 |
583 | ## 18.androidannotations
584 |
585 |
一句话介绍:一款基于注解的快速开发框架
586 |
587 |
上榜理由:与Butterknife一样基于注解,利用注解快速完成view的初始化,不同的是androidannotations提供了更多的能力:简单的线程模型等;笔者只接触过Butterknife,无法更进一步叙述androidannotations的优势,如果你志在深入了解注解的妙用,可以尝试探索一下!
588 |
589 |
官网地址 [http://androidannotations.org/](http://androidannotations.org/)
590 |
591 |
github [https://github.com/androidannotations/androidannotations](https://github.com/androidannotations/androidannotations)
592 |
593 |
作者: WonderCsabo
594 |
595 | ## 19.fastjson
596 |
597 |
一句话介绍:一款基于json解析、生成的框架
598 |
599 |
上榜理由:从它的名字不难看出,快速是它最大的特性,阿里巴巴的出身保证了代码的质量和优越,9.4k的star数量,也是榜单里第一个出现的中国开源框架,涉及网络的app都会用到json,fastjson值得作为你的首选!
600 |
601 |
github [https://github.com/alibaba/fastjson](https://github.com/alibaba/fastjson)
602 |
603 |
作者:alibaba
604 |
605 |
使用:
606 |
607 |
608 |
609 |
compile 'com.alibaba:fastjson:1.1.58.android'
610 |
611 |
612 |
613 | ## 20.Material-Animations
614 |
615 |
一句话介绍:一款提供场景转换过渡能力的动画框架
616 |
617 |
上榜理由:Android动画框架排行榜第二名,9.3k个star数量,与动画框架榜单第一名lottie-android不同的是,Material-Animations提供的是场景切换的动画效果。Android 官网sample中已经提供了部分Transition (转场动画)的展示,作为初学者很难快速拓展到自己项目中,Material-Animations的示例出现为开发者省去了此类麻烦,直接照搬应用到自己的App中吧。
618 |
619 |
github [https://github.com/lgvalle/Material-Animations](https://github.com/lgvalle/Material-Animations)
620 |
621 |
作者:Luis G. Valle
622 |
623 |
使用:
624 |
625 |
down源码,修改学习
626 |
627 | ## 21.tinker
628 |
629 |
一句话介绍:它是微信官网的Android热补丁解决方案
630 |
631 |
上榜理由:9.1k个star,微信在用的热补丁方案,心动不如行动
632 |
633 |
官网地址 [http://www.tinkerpatch.com/Docs/intro](http://www.tinkerpatch.com/Docs/intro)
634 |
635 |
github [https://github.com/Tencent/tinker](https://github.com/Tencent/tinker)
636 |
637 |
作者:Tencent
638 |
639 | ## 22.ViewPagerIndicator
640 |
641 |
一句话介绍:一款基于ViewPager的页面指示器开源框架
642 |
643 |
上榜理由:上古神器,尽管已经五年未更新了,但你仍然可以在淘宝等app中看到它的使用场景,8.9K的star量让它不愠不火的在矗立在榜单里
644 |
645 |
官网地址 [http://viewpagerindicator.com/](http://viewpagerindicator.com/)
646 |
647 |
github [https://github.com/JakeWharton/ViewPagerIndicator](https://github.com/JakeWharton/ViewPagerIndicator)
648 |
649 |
作者:JakeWharton
650 |
651 |
使用:
652 |
653 |
下载 地址[ https://github.com/JakeWharton/Android-ViewPagerIndicator/zipball/master](https://github.com/JakeWharton/Android-ViewPagerIndicator/zipball/master)
654 |
655 |
656 |
657 | ## 23.Android-CleanArchitecture
658 |
659 |
一句话介绍:一个讲解设计框架的demo
660 |
661 |
上榜理由:它不是框架,你可以把它当作一本书,它将教会你如何设计简洁的架构,工程里有一个sample app,配合图文讲解,你将对Android客户端的架构有更深一层的认识。8.8k的star数量,证明了它是一本“好书”哟。
662 |
663 |
github [https://github.com/android10/Android-CleanArchitecture](https://github.com/android10/Android-CleanArchitecture)
664 |
665 |
作者:Fernando Cejas
666 |
667 | ## 24..Android-PullToRefresh
668 |
669 |
一句话介绍:一款为普通视图提供刷新UI的视图框架
670 |
671 |
上榜理由:8.2K的star数量使它位居刷新类UI框架榜首,强大的兼容能力,该框架支持ListView,GrdiView,WebViewScrollView,ViewPager等众多View增加刷新的能力,如果你有增加上拉加载,下拉加载的需求,你应该考虑它了!
672 |
673 |
github [https://github.com/chrisbanes/Android-PullToRefresh](https://github.com/chrisbanes/Android-PullToRefresh)
674 |
675 |
作者:Chris Banes
676 |
677 |
使用:
678 |
679 |
github fork源码,集成到项目中
680 |
681 | ## 25.flexbox-layout
682 |
683 |
一句话介绍:一款弹性伸缩布局
684 |
685 |
上榜理由:8.1k个star,前端H5开发者转Android开发的福音,FlexboxLayout作为`LinearLayout`和`RelativeLayout的替代者,值得各位一试,与其一同推出的还有ConstraintLayout。`
686 |
687 |
github [https://github.com/google/flexbox-layout](https://github.com/google/flexbox-layout)
688 |
689 |
作者:Google
690 |
691 |
使用:
692 |
693 |
694 |
695 |
dependencies {
696 | compile 'com.google.android:flexbox:0.3.0-alpha3' }
697 |
698 |
699 |
700 | ## 26.AndroidSwipeLayout
701 |
702 |
一句话介绍:非常强大滑动式布局
703 |
704 |
上榜理由:滑动删除是国产app常见需求,商品详情的上下滑动需求作为开发者的我们也经常遇到,AndroidSwipeLayout在github上拥有8K个star,证明它经受住了检验,各位值得一试
705 |
706 |
github [https://github.com/daimajia/AndroidSwipeLayout](https://github.com/daimajia/AndroidSwipeLayout)
707 |
708 |
作者:daimajia
709 |
710 |
使用:
711 |
712 |
713 |
714 |
dependencies {
715 | compile 'com.android.support:recyclerview-v7:21.0.0' compile 'com.android.support:support-v4:20.+' compile "com.daimajia.swipelayout:library:1.2.0@aar" }
716 |
717 |
718 |
719 |
或下载
720 |
721 |
[AndroidSwipeLayout-v1.1.8.jar](https://github.com/daimajia/AndroidSwipeLayout/releases/download/v1.1.8/AndroidSwipeLayout-v1.1.8.jar)
722 |
723 | ## 27.realm-java
724 |
725 |
一句话介绍:Realm是一款移动端数据库框架
726 |
727 |
上榜理由:核心数据引擎C++打造,比普通的Sqlite型数据库快的多。笔者猜测正是如此,realm以7892个star数让它位于大名鼎鼎的数据库框架GreenDao(7877)之前
728 |
729 |
官网地址:[https://realm.io/cn/](https://realm.io/cn/)
730 |
731 |
github [https://github.com/realm/realm-java](https://github.com/realm/realm-java)
732 |
733 |
作者:Realm团队
734 |
735 |
使用:[https://realm.io/docs/java/latest/](https://realm.io/docs/java/latest/)
736 |
737 | ## 28.greenDAO
738 |
739 |
一句话介绍:greenDAO是一款高效、快速的SQLite型数据库
740 |
741 |
上榜理由:greenDAO的star数量与Realm不相上下,且与EventBus师出同门,也是由greenrobot团队开发维护的,质量有所保证,但若拷问笔者Realm与greenDao两者的优劣性,只能具体到实际使用当中,模拟线上的使用情形,进行高强度测试后才能下判断,故在此不能一言两语说完,深表遗憾
742 |
743 |
官网地址:[http://greenrobot.org/greendao/](http://greenrobot.org/greendao/)
744 |
745 |
github [https://github.com/greenrobot/greenDAO](https://github.com/greenrobot/greenDAO)
746 |
747 |
使用:
748 |
749 |
750 |
751 |
[](javascript:void(0); "复制代码")
752 |
753 |
buildscript {
754 | repositories {
755 | jcenter()
756 | mavenCentral() // add repository
757 | }
758 | dependencies {
759 | classpath 'com.android.tools.build:gradle:2.3.1' classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // add plugin
760 | }
761 | } -----
762 |
763 | apply plugin: 'com.android.application' apply plugin: 'org.greenrobot.greendao' // apply plugin
764 | dependencies {
765 | compile 'org.greenrobot:greendao:3.2.2' // add library
766 | }
767 |
768 |
[](javascript:void(0); "复制代码")
769 |
770 |
771 |
772 | ## 29.stetho
773 |
774 |
一句话介绍:一款提供在Chrome开发者工具上调试Android app能力的开源框架
775 |
776 |
上榜理由:上古时期Android程序员要调试本地数据库,需要进入Android Device Monitor找到/data/data/com.xxx.xxx/databases里面的db文件,导出到PC端,用PC的数据工具查看,现在使用stetho省却了如此的麻烦;如今的Android程序员如果想调试网络请求响应过程中的报文段,需要在请求中加入Log语句,一个信息一个信息打印出来,相当繁琐,现在请使用stetho,省却诸如此类的麻烦把!7.8K个star数,广大Android开发者调试的福音,你值得拥有!
777 |
778 |
作者:FaceBook
779 |
780 |
官网地址: http://facebook.github.io/stetho/
781 |
782 |
github [https://github.com/facebook/stetho](https://github.com/facebook/stetho)
783 |
784 |
使用:
785 |
786 |
787 |
788 |
compile 'com.facebook.stetho:stetho:1.5.0'
789 |
790 |
791 |
792 | ## 30.BaseRecyclerViewAdapterHelper
793 |
794 |
一句话介绍:强大、流畅的Recyvlerview通用适配器
795 |
796 |
上榜理由:如果你是RecyclerView的拥簇者,你一定要体验这款专门服务该view的适配器,7.7K个star,让这个家伙位于github上Android 适配器排行榜第一,还有很多惊喜等你去探寻!
797 |
798 |
官网地址:[http://www.recyclerview.org/](http://www.recyclerview.org/)
799 |
800 |
作者:陈宇明以及他的小伙伴
801 |
802 |
使用:
803 |
804 |
805 |
806 |
[](javascript:void(0); "复制代码")
807 |
808 |
allprojects {
809 | repositories {
810 | ...
811 | maven { url "https://jitpack.io" }
812 | }
813 | }
814 |
815 | dependencies {
816 | compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:VERSION_CODE' }
817 |
818 |
[](javascript:void(0); "复制代码")
819 |
820 |
821 |
822 | ## 31.AndroidViewAnimations
823 |
824 |
一句话介绍:一款提供可爱动画集合的框架
825 |
826 |
上榜理由:正如作者所说,它囊括了开发需求过程中所有的动画效果,集成进了这个简洁可爱的动画框架。7.6K的star数,证明了它在动画框架领域的战斗力,让它仅仅位列lottie-android和Material-Animations两个动画框架霸主之后,屈居第三名
827 |
828 |
github [https://github.com/daimajia/AndroidViewAnimations](https://github.com/daimajia/AndroidViewAnimations)
829 |
830 |
作者:daimajia
831 |
832 |
使用:
833 |
834 |
835 |
836 |
dependencies {
837 | compile 'com.android.support:support-compat:25.1.1' compile 'com.daimajia.easing:library:2.0@aar' compile 'com.daimajia.androidanimations:library:2.2@aar' }
838 |
839 |
840 |
841 |
sample:
842 |
843 |
844 |
845 |
YoYo.with(Techniques.Tada)
846 | .duration(700)
847 | .repeat(5)
848 | .playOn(findViewById(R.id.edit_area));
849 |
850 |
851 |
852 | ## 32. MaterialDrawer
853 |
854 |
一句话介绍:强大的塑料风格的抽屉框架
855 |
856 |
上榜理由:7.6K的star数量,作者的持续更新状态,如果你还在犹豫上手SlidingMenu遇到bug没人管的困境,那么你可以入手它作为你的抽屉布局
857 |
858 |
github https://github.com/mikepenz/MaterialDrawer
859 |
860 |
作者:Mike Penz
861 |
862 |
使用:
863 |
864 |
865 |
866 |
compile('com.mikepenz:materialdrawer:5.9.2@aar') {
867 | transitive = true }
868 |
869 |
870 |
871 |
872 |
873 |
new DrawerBuilder().withActivity(this).build();
874 |
875 |
876 |
877 | ## 33.Android-ObservableScrollView
878 |
879 |
一句话介绍:一款让视图滑动更具有视觉效果的滑动式框架
880 |
881 |
上榜理由:7.5K的star数量,证明了它曾经的价值,github上提供了12种滑动效果,你可以用它弥补其他框架的不足,提升你的App体验!
882 |
883 |
github [https://github.com/ksoichiro/Android-ObservableScrollView](https://github.com/ksoichiro/Android-ObservableScrollView)
884 |
885 |
作者:Soichiro Kashima
886 |
887 |
使用:
888 |
889 |
890 |
891 |
compile com.github.ksoichiro:android-observablescrollview
892 |
893 |
894 |
895 | ## 34.CircleImageView
896 |
897 |
一句话介绍:圆角ImageView
898 |
899 |
上榜理由:也许你已经听说过无数种展示圆角图片的方法,但如果你不尝试尝试CircleImageView,那么你的知识库会因为少了它黯然失色,有的时候完成需求是开发者优先考虑的,不同实现方法牵扯到的性能差异更值得让人深思,如果你有心在**图片性能**上有所涉猎,那么CircleImageView绝对不会让你败兴而归。最后别忘了记得去看Romain Guy的建议哟。
900 |
901 |
github [https://github.com/hdodenhof/CircleImageView](https://github.com/hdodenhof/CircleImageView)
902 |
903 |
作者:Henning Dodenhof
904 |
905 |
使用:
906 |
907 |
908 |
909 |
dependencies {
910 | ...
911 | compile 'de.hdodenhof:circleimageview:2.1.0' }
912 |
913 |
914 |
915 |
916 |
917 |
[](javascript:void(0); "复制代码")
918 |
919 |
<de.hdodenhof.circleimageview.CircleImageView
920 | xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/profile_image" android:layout_width="96dp" android:layout_height="96dp" android:src="@drawable/profile" app:civ_border_width="2dp" app:civ_border_color="#FF000000"/>
921 |
922 |
[](javascript:void(0); "复制代码")
923 |
924 |
925 |
926 | ## 35.logger
927 |
928 |
一句话介绍:一款让log日志优雅显示的框架
929 |
930 |
上榜理由:logger作为调试框架,并未给出很强大的能力,它最大的亮点是优雅的输出log信息,并且支持多种格式:线程、Json、Xml、List、Map等,如果你整日沉迷于汪洋大海般的log信息不能自拔,logger就是你的指路明灯!6.6k个star让他位列调试框架第二名,屈居facebook的stetho之后
931 |
932 |
github [https://github.com/orhanobut/logger](https://github.com/orhanobut/logger)
933 |
934 |
作者:Orhan Obut
935 |
936 |
使用:
937 |
938 |
939 |
940 |
compile 'com.orhanobut:logger:2.1.1'
941 |
942 |
943 |
944 |
945 |
946 |
Logger.d(MAP);
947 | Logger.d(SET);
948 | Logger.d(LIST);
949 | Logger.d(ARRAY); Logger.json(JSON_CONTENT);
950 | Logger.xml(XML_CONTENT);
951 |
952 |
953 |
954 | ## 36.agera
955 |
956 |
一句话介绍:一款服务于Android平台的响应式编程框架
957 |
958 |
上榜理由:google专门推出一套响应式编程框架服务于Android开发者,相比于之响应式编程框架榜首的 RxJava RxAndroid,它更轻量,两者最大的不同点在于agera基于push event、pull data (VS Rx系列 push data)。
959 |
960 |
github [https://github.com/google/agera](https://github.com/google/agera)
961 |
962 |
作者:Google
963 |
964 |
使用:
965 |
966 |
967 |
968 |
compile 'com.google.android.agera:agera:1.3.0'
969 |
970 |
971 |
972 | 扩展能力
973 |
974 |
975 |
976 |
compile 'com.google.android.agera:content:1.3.0' compile 'com.google.android.agera:database:1.3.0' compile 'com.google.android.agera:net:1.3.0' compile 'com.google.android.agera:rvadapter:1.3.0' compile 'com.google.android.agera:rvdatabinding:1.3.0'
977 |
978 |
979 |
980 | ## 37.BottmBar
981 |
982 |
一句话介绍:一款底部导航栏视图框架
983 |
984 |
上榜理由:底部栏里的王者框架,6.3K的star数量,证明了它的优秀,完全遵循材料设计规范,上手非常方便。如果说缺点,无法设置icon与titile的间距,无法自定义视图的大小等,但这些都可以通过修改源代码解决,笔者献丑也修改了一套符合国内开发者的底部导航框架,即将开源。
985 |
986 |
github [https://github.com/roughike/BottomBar](https://github.com/roughike/BottomBar)
987 |
988 |
作者:Iiro Krankka
989 |
990 |
使用:
991 |
992 |
993 |
994 |
compile 'com.roughike:bottom-bar:2.3.1'
995 |
996 |
997 |
998 | ## 38.Calligraphy
999 |
1000 |
一句话介绍:一款自定义字体框架
1001 |
1002 |
上榜理由:如果你还在为一键修改App内所有字体样式而烦恼,6.3K个star的Calligraphy就值得你拥有,它可以同时修改整个整个项目的Textview字体,也可以单独 设置某个Textview的字体,还在等什么,快来试试吧!
1003 |
1004 |
github [https://github.com/chrisjenx/Calligraphy](https://github.com/chrisjenx/Calligraphy)
1005 |
1006 |
作者:Christopher Jenkins
1007 |
1008 |
使用:
1009 |
1010 |
1011 |
1012 |
dependencies {
1013 | compile 'uk.co.chrisjenx:calligraphy:2.3.0' }
1014 |
1015 |
1016 |
1017 | ## 39.AndroidSlidingUpPanel
1018 |
1019 |
一句话介绍:可拖动的滑动面板视图框架
1020 |
1021 |
上榜理由:如果你的项目需要一个可拖拽的滑动式面板(展示某些详情信息,播放音乐,地图信息等),那么推荐你使用它,6.3k个star,来自创业公司umano的作品,证明它是用心推出的杰作
1022 |
1023 |
github [https://github.com/umano/AndroidSlidingUpPanel](https://github.com/umano/AndroidSlidingUpPanel)
1024 |
1025 |
作者:umano[
1026 | ](https://github.com/umano)
1027 |
1028 |
使用:
1029 |
1030 |
1031 |
1032 |
[](javascript:void(0); "复制代码")
1033 |
1034 |
dependencies {
1035 | repositories {
1036 | mavenCentral()
1037 | }
1038 |
1039 | compile 'com.sothree.slidinguppanel:library:3.3.1' }
1040 |
1041 |
[](javascript:void(0); "复制代码")
1042 |
1043 |
1044 |
1045 | ## 40.AppIntro
1046 |
1047 |
一句话介绍:一款提供快速制作欢迎页的框架
1048 |
1049 |
上榜理由:笔者从未把打算把欢迎页框架纳入排行榜当中,作为国内开发者,ViewPager开发App的欢迎页已经是手到擒来的需求,为何一个开源的欢迎页框架会在github上拥有6.3k个star?也许你会不屑一顾,是的,往往就在不屑一顾的瞬间,机遇就悄悄溜走了。
1050 |
1051 |
github [https://github.com/apl-devs/AppIntro](https://github.com/apl-devs/AppIntro)
1052 |
1053 |
作者:Paolo Rotolo
1054 |
1055 |
1056 |
1057 |
[](javascript:void(0); "复制代码")
1058 |
1059 |
allprojects {
1060 | repositories {
1061 | ...
1062 | maven { url 'https://jitpack.io' }
1063 | }
1064 | }
1065 |
1066 | dependencies {
1067 | compile 'com.github.apl-devs:appintro:v4.2.0' }
1068 |
1069 |
[](javascript:void(0); "复制代码")
1070 |
1071 |
1072 |
1073 | ## 41.recyclerview-animators
1074 |
1075 |
一句话介绍:一款为Recyclerview提供扩展动画能力的框架
1076 |
1077 |
上榜理由:有一句老话:如果有天你失去对新事物的兴趣,那就说明你老了。recyclerview已经推出快三年了,还在用listview的人们,是否已经发掘自己渐渐变老;不要灰心,快为你的项目加入recyclerview-animators框架吧,为“自己”加入新鲜的血液和能量!(笔者备注:6.2K个star)
1078 |
1079 |
github [https://github.com/wasabeef/recyclerview-animators](https://github.com/wasabeef/recyclerview-animators)
1080 |
1081 |
作者;[https://github.com/wasabeef](https://github.com/wasabeef)
1082 |
1083 |
使用:
1084 |
1085 |
1086 |
1087 |
dependencies { // jCenter
1088 | compile 'jp.wasabeef:recyclerview-animators:2.2.6' }
1089 |
1090 |
1091 |
1092 | ## 42.dagger
1093 |
1094 |
一句话介绍:一款通过依赖注入降低程序间耦合的开发框架
1095 |
1096 |
上榜理由:github 上dagger1版本 有6.2k个star , dagger2版本有7.3k个;由square完成的dagger1版本,到如今google团队接手的dagger2版本,强力开发团队保证了代码在设计上的优越性;如果你想探究Android 领域的设计模式,这也是不错的选择。
1097 |
1098 |
官网地址:[https://google.github.io/dagger/](https://google.github.io/dagger/)
1099 |
1100 |
github :[https://github.com/google/dagger](https://github.com/google/dagger)
1101 |
1102 |
作者:google
1103 |
1104 |
使用:
1105 |
1106 |
1107 |
1108 |
[](javascript:void(0); "复制代码")
1109 |
1110 |
dependencies {
1111 | compile 'com.google.dagger:dagger:2.x' annotationProcessor 'com.google.dagger:dagger-compiler:2.x' }
1112 | If you're using classes in dagger.android you'll also want to include:
1113 |
1114 | compile 'com.google.dagger:dagger-android:2.x' compile 'com.google.dagger:dagger-android-support:2.x'
1115 | annotationProcessor 'com.google.dagger:dagger-android-processor:2.x'
1116 |
1117 |
[](javascript:void(0); "复制代码")
1118 |
1119 |
1120 |
1121 | ## 43.Android-Bootstarp
1122 |
1123 |
一句话介绍:一款提供在Android应用上实现Bootstrap(web框架)所作出效果的框架
1124 |
1125 |
上榜理由:榜单上第二款响应web技术的Android 端框架,还记得第一名是谁吗——flexbox-layout,作为Android开发者,你有必要去了解Web技术了。5.9k个star,证明它不容小觑
1126 |
1127 |
github [https://github.com/Bearded-Hen/Android-Bootstrap](https://github.com/Bearded-Hen/Android-Bootstrap)
1128 |
1129 |
作者:Bearded-Hen团队
1130 |
1131 |
使用:
1132 |
1133 |
1134 |
1135 |
dependencies {
1136 | compile 'com.beardedhen:androidbootstrap:{X.X.X}' }
1137 |
1138 |
1139 |
1140 | ## 44.RxBinding
1141 |
1142 |
一句话介绍:一款提供UI组件事件响应能力的框架
1143 |
1144 |
上榜理由:如果你还未开始RxAndroid 之旅,RxBinding可以作为你的第一站,通过RXBinding,你将理解响应式编程的快乐,让项目里的事件流程更清晰。5.6K个star,RxAndroid作者亲自操刀,快来试用吧!
1145 |
1146 |
github [https://github.com/JakeWharton/RxBinding](https://github.com/JakeWharton/RxBinding)
1147 |
1148 |
作者:JakeWharton
1149 |
1150 |
1151 |
1152 |
[](javascript:void(0); "复制代码")
1153 |
1154 |
Platform bindings:
1155 |
1156 | compile 'com.jakewharton.rxbinding2:rxbinding:2.0.0'
1157 | 'support-v4' library bindings:
1158 |
1159 | compile 'com.jakewharton.rxbinding2:rxbinding-support-v4:2.0.0'
1160 | 'appcompat-v7' library bindings:
1161 |
1162 | compile 'com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.0.0'
1163 | 'design' library bindings:
1164 |
1165 | compile 'com.jakewharton.rxbinding2:rxbinding-design:2.0.0'
1166 | 'recyclerview-v7' library bindings:
1167 |
1168 | compile 'com.jakewharton.rxbinding2:rxbinding-recyclerview-v7:2.0.0'
1169 | 'leanback-v17' library bindings:
1170 |
1171 | compile 'com.jakewharton.rxbinding2:rxbinding-leanback-v17:2.0.0'
1172 |
1173 |
[](javascript:void(0); "复制代码")
1174 |
1175 |
1176 |
1177 | ## 45.ListViewAnimations
1178 |
1179 |
一句话介绍:一款为ListView提供动展示画效果能力的框架
1180 |
1181 |
上榜理由:如果有一天我承认自己老了,我还会排排我的兄弟——ListView,证明我和它一起战斗过。ListViewAnimations的存在就是证明我们这些“老年人”仍有用武之地,也许你有说不出口的难处,无法体会到RecyclerView里动画的快乐,拥有ListViewAnimations,你一样可以骄傲的说,我的孩子(每个item)也有自己的动效啦。(笔者备注 5.6K个star)
1182 |
1183 |
github [https://github.com/nhaarman/ListViewAnimations](https://github.com/nhaarman/ListViewAnimations)
1184 |
1185 |
作者:nhaarman
1186 |
1187 |
使用:
1188 |
1189 |
1190 |
1191 |
[](javascript:void(0); "复制代码")
1192 |
1193 |
repositories {
1194 | mavenCentral()
1195 | }
1196 |
1197 | dependencies {
1198 | compile 'com.nhaarman.listviewanimations:lib-core:3.1.0@aar' compile 'com.nhaarman.listviewanimations:lib-manipulation:3.1.0@aar' compile 'com.nhaarman.listviewanimations:lib-core-slh:3.1.0@aar' }
1199 |
1200 |
[](javascript:void(0); "复制代码")
1201 |
1202 |
1203 |
1204 | ## 46.UItimateRecyclerView
1205 |
1206 |
一句话介绍:一款提供刷新、加载更多、动画特效等额外能力的RecyclerView框架
1207 |
1208 |
上榜理由:榜单上第三次出现RecyclerView的身影,足以证明RecyclerView的优异性,5.5K个star,框架里所提供众多的能力,如果你是个功利开发者,那么此框架会为你节省很多学习时间,它可以完成多item式布局的大多数需求,值得注意的是,这个项目也是在其他项目的思路上二次开发的。
1209 |
1210 |
github [https://github.com/cymcsg/UltimateRecyclerView](https://github.com/cymcsg/UltimateRecyclerView)
1211 |
1212 |
作者:MarshalChen
1213 |
1214 |
使用:
1215 |
1216 |
1217 |
1218 |
[](javascript:void(0); "复制代码")
1219 |
1220 |
repositories {
1221 | jcenter()
1222 | }
1223 | dependencies {
1224 | ...
1225 | compile 'com.marshalchen.ultimaterecyclerview:library:0.7.2' }
1226 |
1227 |
[](javascript:void(0); "复制代码")
1228 |
1229 |
1230 |
1231 | ## 47.uCrop
1232 |
1233 |
一句话介绍:一款优雅的图片裁剪框架
1234 |
1235 |
上榜理由:5.3K个star,图片编辑模块单独拎出来也是一款优雅的App。
1236 |
1237 |
github [https://github.com/Yalantis/uCrop](https://github.com/Yalantis/uCrop)
1238 |
1239 |
作者:Yalantis
1240 |
1241 |
使用:
1242 |
1243 |
1244 |
1245 |
[](javascript:void(0); "复制代码")
1246 |
1247 |
allprojects {
1248 | repositories {
1249 | jcenter()
1250 | maven { url "https://jitpack.io" }
1251 | }
1252 | }
1253 |
1254 | compile 'com.github.yalantis:ucrop:2.2.1'
1255 |
1256 |
[](javascript:void(0); "复制代码")
1257 |
1258 |
1259 |
1260 | ## 48.RxJava-Android-Samples
1261 |
1262 |
一句话介绍:一款介绍RxJava使用场景的app
1263 |
1264 |
上榜理由:榜单出现的第一个**“仅仅为告诉你如何使用另一个项目”**的开源项目,它可以说是RxJava的用例,你想得到的想不到的RxJava用法这里都有,这就是为什么它以5.2k个star矗立在这份榜单里的原因。遗憾自己没有创作这么一个受人追捧的demo?赶快动手写个其他的“XX项目用例吧”
1265 |
1266 |
github [https://github.com/kaushikgopal/RxJava-Android-Samples](https://github.com/kaushikgopal/RxJava-Android-Samples)
1267 |
1268 |
作者:kaushikgopal
1269 |
1270 |
使用:
1271 |
1272 |
clone到本地慢慢探索吧
1273 |
1274 | ## 49.AndroidAutoLayout
1275 |
1276 |
一句话介绍:一个提供适配能力的框架
1277 |
1278 |
上榜理由:5.2K个star,鸿洋老弟的作品,适合小项目的开发团队,拿到设计MM的px像素设计稿是不是很头疼捏?这个框架一键式搞定你的问题,它有很多的不足,但在追求完美适配的路上,你值得探索和了解它!笔者并不推荐把它应用到已经成熟运行的项目中,毕竟市面上已经有太多的适配解决方案了,适配问题就像是个大杂烩,想炒一盘好菜,就得备好各种佐料(适配小方案),当你把各种小佐料用的炉火纯青的时候,你离美食大厨就不远了。
1279 |
1280 |
github [https://github.com/hongyangAndroid/AndroidAutoLayout](https://github.com/hongyangAndroid/AndroidAutoLayout)
1281 |
1282 |
作者:张鸿洋
1283 |
1284 |
使用:
1285 |
1286 |
1287 |
1288 |
dependencies {
1289 | compile 'com.zhy:autolayout:1.4.5' }
1290 |
1291 |
1292 |
1293 | ## 50.EffectiveAndroidUI
1294 |
1295 |
一句话介绍:一款讲解高效展示UI的教学型App
1296 |
1297 |
上榜理由:编程新手很难对MVC MVP,MVVM等模式有深刻的理解,如果有一个示例型app,那对初学者会有很大裨益,笔者在遇到它时也是相见恨晚。4.8K个star,证明了它经受了广大开发者的考验与审视,其中Effective UI的编程思想更是与Android官方课程里的Effective UI课程不谋而合,并且,此项目还包含了fragment、dagger、主题样式、Butterknife等众多小知识点,作为编程初学者的学习用例再适合不过了
1298 |
1299 |
github [https://github.com/pedrovgs/EffectiveAndroidUI](https://github.com/pedrovgs/EffectiveAndroidUI)
1300 |
1301 |
作者:Pedro Vicente
1302 |
1303 |
使用:
1304 |
1305 |
clone项目到本地
1306 |
1307 | ## 51.Luban
1308 |
1309 |
一句话介绍:最接近微信的图片压缩框架
1310 |
1311 |
上榜理由:好的思路总是可以让你大放异彩,Luban仅以图片压缩单一功能,俘获了4.8K个star,证明了它在图片压缩上的造诣,它可能不是最优秀的,但它是让你我最接近伟大的项目
1312 |
1313 |
github [https://github.com/Curzibn/Luban](https://github.com/Curzibn/Luban)
1314 |
1315 |
作者:Curzibn
1316 |
1317 |
使用:
1318 |
1319 |
1320 |
1321 |
compile 'top.zibin:Luban:1.1.1'
1322 |
1323 |
1324 |
1325 | ## 52.DroidPlugin
1326 |
1327 | 一句话介绍:一款热门的插件化开发框架
1328 |
1329 | 上榜理由:4.8K个star,插件化框架榜单第一名,,360团队出品,框架质量有保证,有成功案例——360手机助手,并且持续维护着
1330 |
1331 | github [https://github.com/DroidPluginTeam/DroidPlugin/blob/master/readme_cn.md](https://github.com/DroidPluginTeam/DroidPlugin/blob/master/readme_cn.md)
1332 |
1333 | 作者:Andy Zhang
1334 |
1335 | 使用:
1336 |
1337 | clone项目到本地
1338 |
1339 | ## 53\. otto
1340 |
1341 |
一句话介绍:一款老旧且强大的事件总线框架
1342 |
1343 |
上榜理由:4.8K个star,是square团队早先推出的事件响应型框架,淘宝app的事件驱动也是基于此框架封装的,如今square已经建议开发者采用RxJava RxAndroid来代替otto了。但otto仍有与EventBus横向对比的价值,纵向来说,otto与square自家开发的Rx系列框架的差异同样值得开发者们去探究。
1344 |
1345 |
github [https://github.com/square/otto](https://github.com/square/otto)
1346 |
1347 |
作者:square
1348 |
1349 |
使用:
1350 |
1351 |
1352 |
1353 |
repositories {
1354 | mavenCentral()
1355 | maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
1356 | }
1357 |
1358 | compile 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
1359 |
1360 |
1361 |
1362 | ## 54.u2020
1363 |
1364 |
一句话介绍:一款提供**Dagger的高级教学示例**的app(额,名字是有点绕)
1365 |
1366 |
上榜理由:4.7K个star,JakeWharton牵头开发的教学类app,教你使用Dagger在其他高级框架的用法,它展示了Dagger与ButterKnife、Retrofit、Moshi、Picasso、Okhttp、RxJava、Timber、Madge、LeakCanar等众多优秀框架结合起来的高级用法,你也可以借鉴到自己的项目当中
1367 |
1368 |
github [https://github.com/JakeWharton/u2020](https://github.com/JakeWharton/u2020)
1369 |
1370 |
作者:JakeWharton
1371 |
1372 |
1373 |
1374 | ## 55.buck
1375 |
1376 |
一句话介绍:buck是一个快速构建系统
1377 |
1378 |
上榜理由:facebook+google出身的作者,对构建代码的出色理解,加上大型团队的维护,以及增量更新时的快速高效,让buck成为了微信Android团队构建项目的首选,构建大型项目时,它比gradle更快,然而中小公司并不适合此框架,但作为立志在框架设计领域有一番作为的人们,欢迎来一探究竟
1379 |
1380 |
官网地址:[https://buckbuild.com/](https://buckbuild.com/)
1381 |
1382 |
github [https://github.com/facebook/buck](https://github.com/facebook/buck)
1383 |
1384 |
作者:facebook
1385 |
1386 |
使用:
1387 |
1388 |
1389 |
1390 |
linux or mac system +docs
1391 |
1392 |
1393 |
1394 | ## 56.PermissionsDispatcher
1395 |
1396 |
一句话介绍:一款基于注解的提供**解决运行时危险权限**方案的框架
1397 |
1398 |
上榜理由:自Android6.0 Google提出危险权限一词起,用户安全性被提到一定的高度,一些运行时对用户较为危险的权限将不再自动被开发者获取,需要经过用户批准,开发者才可以继续使用该权限,如果你曾经被权限问题搞的抓耳挠腮,建议你试试这个框架,它足够解决你的问题
1399 |
1400 |
官网地址:[https://hotchemi.github.io/PermissionsDispatcher/](https://hotchemi.github.io/PermissionsDispatcher/)
1401 |
1402 |
github [https://github.com/hotchemi/PermissionsDispatcher](https://github.com/hotchemi/PermissionsDispatcher)
1403 |
1404 |
作者:Shintaro Katafuchi
1405 |
1406 |
使用:
1407 |
1408 |
1409 |
1410 |
[](javascript:void(0); "复制代码")
1411 |
1412 |
dependencies {
1413 | compile('com.github.hotchemi:permissionsdispatcher:${latest.version}') {
1414 | exclude module: "support-v13" }
1415 | annotationProcessor 'com.github.hotchemi:permissionsdispatcher-processor:${latest.version}' } repositories {
1416 | jcenter()
1417 | maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' }
1418 | }
1419 |
1420 |
[](javascript:void(0); "复制代码")
1421 |
1422 |
1423 |
1424 | ## 57.android-gif-drawable
1425 |
1426 |
一句话介绍:一款提供展示GIF动画能力的视图框架
1427 |
1428 |
上榜理由:据我所查国内著名App——知乎使用了android-gif-drawable,因此证明了它的存在价值,尽管在榜单第十一位介绍了lottie-android直接应用AE动画的示例,但AE设计师不是每个公司都配备的,GIF的存在,就必然存在了展示GIF的需要,它值得你拥有!
1429 |
1430 |
github [https://github.com/koral--/android-gif-drawable](https://github.com/koral--/android-gif-drawable)
1431 |
1432 |
作者:Karol Wrótniak
1433 |
1434 |
使用:
1435 |
1436 |
1437 |
1438 |
[](javascript:void(0); "复制代码")
1439 |
1440 |
repositories {
1441 | mavenCentral()
1442 | maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
1443 | }
1444 | dependencies {
1445 | compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.+' }
1446 |
1447 |
[](javascript:void(0); "复制代码")
1448 |
1449 |
1450 |
1451 | ## 58.Apktool
1452 |
1453 |
一句话介绍:一款反编译apk的工具
1454 |
1455 |
上榜理由:开源的反编译工具,对于志在了解apk逆向破解的诸位,值得拥有,4.5k个star,逆向破解apk神器!
1456 |
1457 |
github [https://github.com/iBotPeaches/Apktool](https://github.com/iBotPeaches/Apktool)
1458 |
1459 |
官网地址:[https://ibotpeaches.github.io/Apktool/](https://ibotpeaches.github.io/Apktool/)
1460 |
1461 |
作者:Connor Tumbleson
1462 |
1463 | ## 59.dynamic-load-apk
1464 |
1465 |
一句话介绍:插件化开发框架
1466 |
1467 |
上榜理由:4.5k个star,位于插件化开发框架第二名(第一名来自360团队),全面的文档介绍让你很快就能上手插件化开发,如果你喜欢大段文字讲解,那么这个项目一定适合你
1468 |
1469 |
github:[https://github.com/singwhatiwanna/dynamic-load-apk](https://github.com/singwhatiwanna/dynamic-load-apk)
1470 |
1471 |
作者:singwhatiwanna
1472 |
1473 |
使用:
1474 |
1475 |
github上的文档配合作者博客更配哟
1476 |
1477 | ## 60.atlas
1478 |
1479 |
一句话介绍:淘宝推出的组件化开发框架
1480 |
1481 |
上榜理由:淘宝团队所出的精品,atlas框架提供了解耦、组件、动态的开发能力,4.5k个star让他位列组件化开发框架第一名
1482 |
1483 |
github [https://github.com/alibaba/atlas](https://github.com/alibaba/atlas)
1484 |
1485 |
作者:alibaba
1486 |
1487 | ## 61.volley
1488 |
1489 |
一句话介绍:google推荐使用的Android端网络请求框架
1490 |
1491 |
上榜理由:4.4k个star,并不是他不够优秀,而是使用volley已经渐渐成为广大开发者的习惯
1492 |
1493 |
github https://github.com/google/volley(新版volley地址)
1494 |
1495 |
作者:google
1496 |
1497 |
使用:
1498 |
1499 |
clone源码到本地
1500 |
1501 | ## 62.androidmvp
1502 |
1503 |
一句话介绍:一款展示Android端Mvp设计的demo
1504 |
1505 |
上榜理由:榜单里为数不多、仅凭展示某种设计模式就获得4.2K个star的项目,如果你有尝试mvp的打算,androidmvp可以作为你的前哨站
1506 |
1507 |
github [https://github.com/antoniolg/androidmvp](https://github.com/antoniolg/androidmvp)
1508 |
1509 |
作者:Antonio Leiva
1510 |
1511 |
使用:
1512 |
1513 |
clone到本地
1514 |
1515 | ## 63.SwipeBackLayout
1516 |
1517 |
一句话介绍:一款可以让你通过滑动手势关闭页面的的框架
1518 |
1519 |
上榜理由:仿微信滑动退出当前聊天界面的效果,提供了activity的滑动关闭能力,通过这种思路,实现fragment的滑动关闭轻而易举;笔者坚持建议诸位clone源码到本地探索一番;4.2k个star证明很多人都喜爱它
1520 |
1521 |
github [https://github.com/ikew0ng/SwipeBackLayout](https://github.com/ikew0ng/SwipeBackLayout)
1522 |
1523 |
作者:ike_w0ng
1524 |
1525 |
使用:
1526 |
1527 |
1528 |
1529 |
compile 'me.imid.swipebacklayout.lib:library:1.0.0'
1530 |
1531 |
1532 |
1533 | ## 64.FlycoTabLayout
1534 |
1535 |
一句话介绍:一款可以让作出多种多样指示器效果的框架
1536 |
1537 |
上榜理由:尽管我们没有理由为了给app加入页面指示器功能就集成2.5M的依赖库,但是作为了解viewpager或swip views的指示器设计原理的优秀框架,你值得打开它试试,笔者建议单独拆分所需源码,加入到自己的项目中去。4.1K个star,二次开发的作品,仍然推荐!
1538 |
1539 |
github [https://github.com/H07000223/FlycoTabLayout](https://github.com/ikew0ng/SwipeBackLayout)
1540 |
1541 |
作者:Flyco
1542 |
1543 | ## 65.android-testing
1544 |
1545 |
一句话介绍:一款展示四大自动化测试框架用例的demo(Espresso,UiAutomator,AndroidJunitRunner,JUnit4)
1546 |
1547 |
上榜理由:学习者经常会陷入似懂非懂的境地,如果你有幸学习过Android Testing Support Library site的课程,那么你一定对android的四大测试框架迫不及待,这款demo非常适合你,快来学习这个4.1k个star的明星项目吧
1548 |
1549 |
github [https://github.com/googlesamples/android-testing](https://github.com/googlesamples/android-testing)
1550 |
1551 |
作者:googlesampes团队
1552 |
1553 | ## 66.FileDownloader
1554 |
1555 |
一句话介绍:一款高效、稳定、灵活、易用的**文件下载引擎**
1556 |
1557 |
上榜理由:4.1k证明了它有多受人喜爱,文件下载看似简单的背后暗藏了多少的坑坑点点,我知道你有能力自己实现文件下载功能,但优秀的框架可以提升你的设计编码能力,这款框架可以提升你的实力!
1558 |
1559 |
github [https://github.com/lingochamp/FileDownloader](https://github.com/lingochamp/FileDownloader)
1560 |
1561 |
作者:LingoChamp团队
1562 |
1563 |
使用:
1564 |
1565 |
1566 |
1567 |
dependencies {
1568 | compile 'com.liulishuo.filedownloader:library:1.5.5' }
1569 |
1570 |
1571 |
1572 | ## 67.JieCaoVideoPlayer
1573 |
1574 |
一句话介绍:基于MediaPlayer api——VideoView 的多媒体播放框架
1575 |
1576 |
上榜理由:榜单里第三款多媒体播放框架,它以灵巧的身姿挤入本榜单,精巧是它最大的优点,不到100k,拥有它,你就可以快速开发类似今日头条那样的视频播放效果,4k个star,证明它值得一试
1577 |
1578 |
github [https://github.com/lipangit/JieCaoVideoPlayer](https://github.com/lipangit/JieCaoVideoPlayer)
1579 |
1580 |
作者:Nathen
1581 |
1582 |
使用:
1583 |
1584 |
1585 |
1586 |
compile 'fm.jiecao:jiecaovideoplayer:5.5.4'
1587 |
1588 |
1589 |
1590 | ## 68.glide-transformations
1591 |
1592 |
一句话介绍:为众多著名图片加载框架**提供图片形状变幻能力**的框架
1593 |
1594 |
上榜理由:在榜单靠前的部分已经介绍过glide,Picasso,Fresco等图片加载框架,glide-transformations就是一款为他们提供图片变形能力的框架,使用起来非常简单,因此受到了大家的喜爱,github上有3.8K个star
1595 |
1596 |
github [https://github.com/wasabeef/glide-transformations](https://github.com/wasabeef/glide-transformations)
1597 |
1598 |
作者:Daichi Furiya
1599 |
1600 |
使用:
1601 |
1602 |
1603 |
1604 |
[](javascript:void(0); "复制代码")
1605 |
1606 |
repositories {
1607 | jcenter()
1608 | }
1609 |
1610 | dependencies {
1611 | compile 'jp.wasabeef:glide-transformations:2.0.2'
1612 | // If you want to use the GPU Filters
1613 | compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.4.1' }
1614 |
1615 |
[](javascript:void(0); "复制代码")
1616 |
1617 |
1618 |
1619 |
在Glide里设置变幻效果
1620 |
1621 |
1622 |
1623 |
Set Glide Transform.
1624 |
1625 | Glide.with(this).load(R.drawable.demo)
1626 | .bitmapTransform(new BlurTransformation(context))
1627 | .into((ImageView) findViewById(R.id.image));
1628 |
1629 |
1630 |
1631 | ## 69.android-gpuimage
1632 |
1633 |
一句话介绍:一款基于OpenGL的图片渲染引擎
1634 |
1635 |
上榜理由:放下GpuImage在IOS平台的荣誉不谈,Android版的android-gpuimage就提供多达70多种图片渲染效果,你还在好奇美图秀秀是如何实现图片变幻的?有了它,一切都不是问题。如果你是美图工具类的工程师,此框架的建设思路也会对你大有裨益。笔者也是通过android-gpuimage仿造了美图App并俘获女友芳心的,再次为它的实力点赞。ios版+android版一共19k个star,已经证明了它的实力,还在等什么呢?
1636 |
1637 |
github:[https://github.com/CyberAgent/android-gpuimage](https://github.com/CyberAgent/android-gpuimage)
1638 |
1639 |
作者:CyberAgent 团队
1640 |
1641 |
使用:
1642 |
1643 |
1644 |
1645 |
[](javascript:void(0); "复制代码")
1646 |
1647 |
repositories {
1648 | jcenter()
1649 | }
1650 |
1651 | dependencies {
1652 | compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.4.1' }
1653 |
1654 |
[](javascript:void(0); "复制代码")
1655 |
1656 |
1657 |
1658 |
更多的改造方法,还需要阅读Ios的编程文档,对于有毅力的小伙伴强力推荐!
1659 |
1660 | ## 70.RxPermissions
1661 |
1662 |
一句话介绍:一款基于RxJava完成权限申请的框架
1663 |
1664 |
上榜理由:榜单里第二款提供权服务的框架,基于RxJava的设计,让你可以专心写业务,3.7K个star已经证明了它的实用价值
1665 |
1666 |
github [https://github.com/tbruyelle/RxPermissions](https://github.com/tbruyelle/RxPermissions)
1667 |
1668 |
作者:Thomas Bruyelle
1669 |
1670 |
使用:
1671 |
1672 |
1673 |
1674 |
[](javascript:void(0); "复制代码")
1675 |
1676 |
repositories {
1677 | jcenter() // If not already there
1678 | }
1679 |
1680 | dependencies {
1681 | compile 'com.tbruyelle.rxpermissions:rxpermissions:0.9.4@aar' }
1682 |
1683 |
[](javascript:void(0); "复制代码")
1684 |
1685 |
1686 |
1687 |
优雅的使用:
1688 |
1689 |
1690 |
1691 |
[](javascript:void(0); "复制代码")
1692 |
1693 |
RxPermissions rxPermissions = new RxPermissions(this);
1694 |
1695 | rxPermissions
1696 | .request(Manifest.permission.CAMERA)
1697 | .subscribe(granted -> { if (granted) { // I can control the camera now
1698 | } else { // Oups permission denied
1699 | }
1700 | });
1701 |
1702 |
[](javascript:void(0); "复制代码")
1703 |
1704 |
1705 |
1706 | ## 71.freeline
1707 |
1708 |
一句话介绍:一款动态替换的编译构建框架
1709 |
1710 |
上榜理由:继Facebook的Buck,Androdi官方的InstRun之后,蚂蚁金服推出了Freeline编译框架,官网宣称**Freeline与业内主流构建方式相比仍然有数倍的速度领先;**排行有先后,编译速度并不在本榜单排序的考据因素中,因此freeline以3.7个star,暂列编译框架第二名
1711 |
1712 |
官网地址:[https://www.freelinebuild.com/](https://www.freelinebuild.com/)
1713 |
1714 |
github:[https://github.com/alibaba/freeline](https://github.com/alibaba/freeline)
1715 |
1716 |
作者:alibaba
1717 |
1718 |
使用:
1719 |
1720 |
1721 |
1722 |
[](javascript:void(0); "复制代码")
1723 |
1724 |
buildscript {
1725 | repositories {
1726 | jcenter()
1727 | }
1728 | dependencies {
1729 | classpath 'com.antfortune.freeline:gradle:0.8.7' }
1730 | }
1731 |
1732 |
apply plugin: 'com.antfortune.freeline'
1733 |
1734 | android {
1735 | ...
1736 | }
1737 |
1738 | File → Settings... → Plugins → Browse repositories →freeline.
1739 |
1740 |
[](javascript:void(0); "复制代码")
1741 |
1742 |
1743 |
1744 | ## 72.RxLifecycle
1745 |
1746 |
一句话介绍:一款提供在**使用RxJava过程中管理Activity和Fragment生命周期能力**的框架
1747 |
1748 |
上榜理由:在榜单靠前的部分,你已经了解RxJava和RxAndroid的强大之处,但部分粗心的开发者因为没有及时取消订阅而产生严重的内存泄漏,不要担心,RxLifecycle可以为你解决难题,在gtihub上拥有3.7K个star,国内知名软件——知乎和淘宝也都在使用它
1749 |
1750 |
github [https://github.com/trello/RxLifecycle](https://github.com/trello/RxLifecycle)
1751 |
1752 |
作者:trello团队
1753 |
1754 |
使用:
1755 |
1756 |
clone源码到本地
1757 |
1758 | ## 73.classyshark
1759 |
1760 |
一句话介绍:一款可执行文件浏览器
1761 |
1762 |
上榜理由:榜单里继Apktool之后第二款apk逆向工具,如果你喜欢优雅的图形数据展示,那么你一定不能错过他,classyshark可以将破解的结果以图形化展示用户,方便分析,3.7K个star,让它暂列apk逆向工具第二位!
1763 |
1764 |
github [https://github.com/google/android-classyshark](https://github.com/google/android-classyshark)
1765 |
1766 |
作者:google
1767 |
1768 |
使用:
1769 |
1770 |
下载 [JAR](https://github.com/google/android-classyshark/releases)
1771 |
1772 | ## 74.acra
1773 |
1774 |
一句话介绍:一款提供**记录****APP崩溃日志能力**的框架
1775 |
1776 |
上榜理由:如果你面临着收集APP崩溃日志的需求,那么acra是个不错的选择。3.7K个star,让acra位列崩溃日志框架排行榜第一名,acra有足够的能力记录线上APP,并且发回服务端,acra也提供了相当棒的崩溃日志统计服务端框架Acralyzer,cralyzer工作在Apache CouchDB之上,所以除了CouchDB之外,没有必要安装任何额外的软件,移动端开发者也可以借此学习服务端的建设,一举两得!
1777 |
1778 |
github [https://github.com/ACRA/acra](https://github.com/ACRA/acra)
1779 |
1780 |
服务端github [https://github.com/ACRA/acralyzer](https://github.com/ACRA/acralyzer)
1781 |
1782 |
作者:acra团队
1783 |
1784 |
使用:
1785 |
1786 |
没有什么方法比clone源码到本地更方便了
1787 |
1788 | ## 75.DiskLruCache
1789 |
1790 |
一句话介绍:一款提供**磁盘文件缓存管理能力**的框架
1791 |
1792 |
上榜理由:3.7k个star并不足以说明DiskLruCache的优秀,仅仅以管理磁盘文件能力单独拎出来成为一个框架,作者需要很大的勇气,很幸运,作者做到了,并且也成为Google官网提倡的缓存 ;如还记得上次做“一键清除缓存”、“查看缓存文件大小”功能是什么时候吗?DiskLruCache一句话就可以搞定!
1793 |
1794 |
github [https://github.com/JakeWharton/DiskLruCache](https://github.com/JakeWharton/DiskLruCache)
1795 |
1796 |
作者:JakeWharton
1797 |
1798 |
使用:
1799 |
1800 |
1801 |
1802 |
compile 'com.jakewharton:disklrucache:2.0.2'
1803 |
1804 |
1805 |
1806 |
或者下载 [latest .jar](https://search.maven.org/remote_content?g=com.jakewharton&a=disklrucache&v=LATEST)
1807 |
1808 | ## 76.dexposed
1809 |
1810 |
一句话介绍:一款支撑阿里大部分App客户端热修复、线上调试能力的框架
1811 |
1812 |
上榜理由:榜单上再次出现热修复框架的身影,证明App热修复技术的火热,dexposed提供图形化的性能监控、在线热修复bug漏洞、支持AOP编程思想等,不论你是企业热修复技术的设计者还是打算在热修复领域一探究竟的新人,这款框架很适合你。3.5k个star,证明它作为一门技术框架的存在,是多么令人喜爱!
1813 |
1814 |
github [https://github.com/alibaba/dexposed](https://github.com/alibaba/dexposed)
1815 |
1816 |
作者:alibaba
1817 |
1818 |
使用:
1819 |
1820 |
1821 |
1822 |
dependencies {
1823 | compile 'com.taobao.android:dexposed:0.1.1@aar' }
1824 |
1825 |
1826 |
1827 | ## 77.Litho
1828 |
1829 |
一句话介绍:一款提供**高效构建UI能力**的框架
1830 |
1831 |
上榜理由:作为一款专门构建UI的框架,Litho高效的地方在于:单独开辟了用于渲染和布局的线程,然后将创建好的组件传递给UI线程去完成最终的渲染,使用更少的视图层级,来提升界面的滚动速度,值得注意的是,它仅支持开发者作出**不可改变的UI组件** **,**3.5K个star,证明了它在构建UI领域的价值,更多的妙处,期待你亲自去发掘!
1832 |
1833 |
github [https://github.com/facebook/litho](https://github.com/facebook/litho)
1834 |
1835 |
作者:facebook
1836 |
1837 |
使用:
1838 |
1839 |
1840 |
1841 |
[](javascript:void(0); "复制代码")
1842 |
1843 |
ependencies { // ... // Litho
1844 | compile 'com.facebook.litho:litho-core:0.3.1' compile 'com.facebook.litho:litho-widget:0.3.1' provided 'com.facebook.litho:litho-annotations:0.3.1' annotationProcessor 'com.facebook.litho:litho-processor:0.3.1'
1845 |
1846 | // SoLoader
1847 | compile 'com.facebook.soloader:soloader:0.2.0'
1848 |
1849 | // Optional // For debugging
1850 | debugCompile 'com.facebook.litho:litho-stetho:0.3.1'
1851 |
1852 | // For integration with Fresco
1853 | compile 'com.facebook.litho:litho-fresco:0.3.1'
1854 |
1855 | // For testing
1856 | testCompile 'com.facebook.litho:litho-testing:0.3.1' }
1857 |
1858 |
[](javascript:void(0); "复制代码")
1859 |
1860 |
1861 |
1862 | ## 78.mosby
1863 |
1864 |
一句话介绍:一款提供**构建MVP项目能力**的框架
1865 |
1866 |
上榜理由:榜单靠前的部分已经介绍了MVC,MVVM,MVP的框架项目,想必此时你在构建企业项目架构上,选择或者开发一款合适的MVP框架迫在眉睫,mosby可以作为你的第一步参考,你可以封装它,也可以照抄它,无论如何,3.4K个star,证明了它在框架设计上有多受开发者的喜爱
1867 |
1868 |
github [https://github.com/sockeqwe/mosby](https://github.com/sockeqwe/mosby)
1869 |
1870 |
作者:Hannes Dorfmann
1871 |
1872 |
使用:
1873 |
1874 |
1875 |
1876 |
[](javascript:void(0); "复制代码")
1877 |
1878 |
dependencies {
1879 |
1880 | compile 'com.hannesdorfmann.mosby3:mvi:3.0.4' // Model-View-Intent // or
1881 | compile 'com.hannesdorfmann.mosby3:mvp:3.0.4' // Plain MVP // or
1882 | compile 'com.hannesdorfmann.mosby3:viewstate:3.0.4' // MVP + ViewState support
1883 | }
1884 |
1885 |
allprojects {
1886 | repositories {
1887 | ...
1888 |
1889 | maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
1890 | }
1891 |
1892 |
[](javascript:void(0); "复制代码")
1893 |
1894 |
1895 |
1896 | ## 79.AndResGuard
1897 |
1898 |
一句话介绍:一款提供资源文件路径混淆 的工具
1899 |
1900 |
上榜理由:如果你是个对APK大小很敏感的人,那么AndResGuard一定适合你,它的原理类似Java Proguard,但是只针对资源。他会将原本冗长的资源路径变短,例如将`res/drawable/wechat`变为`r/d/a,3.4K个star,证明了在优化APK道路上,你不是一个人在战斗!`
1901 |
1902 |
github [https://github.com/shwenzhang/AndResGuard](https://github.com/shwenzhang/AndResGuard)
1903 |
1904 |
作者:wechat team
1905 |
1906 |
使用:
1907 |
1908 |
clone项目到本地,其实也就是个三两句话的文档
1909 |
1910 | ## 80.StatusBarUtil
1911 |
1912 |
一句话介绍:一款提供**设置沉浸式状态栏样式**能力的框架
1913 |
1914 |
上榜理由:设计师MM总是抱怨系统状态栏不优雅?那就给她一个完美的沉浸式状态栏。StatusBarUtil可以随心所欲的设置状态栏样式,3.3K个star,足以说明它有多受设计MM的喜爱
1915 |
1916 |
github [https://github.com/laobie/StatusBarUtil](https://github.com/laobie/StatusBarUtil)
1917 |
1918 |
作者:Jaeger
1919 |
1920 |
使用:
1921 |
1922 |
1923 |
1924 |
compile 'com.jaeger.statusbarutil:library:1.4.0'
1925 |
1926 |
1927 |
1928 | ## 81.robolectric
1929 |
1930 |
一句话介绍:一款不依赖于Android设备的单元测试框架,
1931 |
1932 |
上榜理由:sample中列举了如何对Android四大组件和常见功能测试的用例,3.2K个star,值得充满好奇心的人尝试
1933 |
1934 |
官网地址:[http://robolectric.org/](http://robolectric.org/)
1935 |
1936 |
github [https://github.com/robolectric/robolectric](https://github.com/robolectric/robolectric)
1937 |
1938 |
作者:robolectric
1939 |
1940 |
使用:
1941 |
1942 |
1943 |
1944 |
testCompile "org.robolectric:robolectric:3.3.2"
1945 |
1946 |
1947 |
1948 | ## 82.Fragmentation
1949 |
1950 |
一句话介绍:一款提供**管理Fragmen嵌套**t能力的框架
1951 |
1952 |
上榜理由:对于Activity和Fragment使用,你一定得心应手,但如果要做一套通用的Activity&Fragment嵌套设计,想必你有点手足无措了,Fragmentation可以作为你设计Fragment管理上的第一步,3.2K个star,笔者认为有点名副其实了,项目介绍里说的是Fragment的管理能力,但并未提供Fragment&Activity生命周期、任务栈的管理能力,因此很难直接应用到企业项目当中,但源码当中的设计思路,值得笔者与诸位借鉴,拾人牙慧留有余香!
1953 |
1954 |
github:[https://github.com/YoKeyword/Fragmentation](https://github.com/YoKeyword/Fragmentation)
1955 |
1956 |
作者:YoKey
1957 |
1958 |
使用:
1959 |
1960 |
1961 |
1962 |
// appcompat v7包是必须的
1963 | compile 'me.yokeyword:fragmentation:0.10.7'
1964 | // 如果想使用SwipeBack 滑动边缘退出Fragment/Activity功能,请再添加下面的库 // compile 'me.yokeyword:fragmentation-swipeback:0.10.4'
1965 |
1966 |
1967 |
1968 | ## 83.Small
1969 |
1970 |
一句话介绍:轻巧的插件化框架
1971 |
1972 |
上榜理由:作为插件框架榜单的新成员,Small的优点是轻巧,适合作为小团队的插件开发方案,3.1K个star,让它获得了**酷狗音乐**等著名开发团队的青睐,如果你们的团队想逐步实施插件化开发,Small是个不错的选择!
1973 |
1974 |
官网地址:[http://code.wequick.net/Small/cn/cases](http://code.wequick.net/Small/cn/cases)
1975 |
1976 |
github [https://github.com/wequick/Small](https://github.com/wequick/Small)
1977 |
1978 |
作者:wequick 团队
1979 |
1980 |
使用:
1981 |
1982 |
1983 |
1984 |
[](javascript:void(0); "复制代码")
1985 |
1986 |
buildscript {
1987 | dependencies {
1988 | classpath 'net.wequick.tools.build:gradle-small:1.2.0-alpha6' }
1989 | }
1990 |
1991 | apply plugin: 'net.wequick.small' small {
1992 | aarVersion = '1.2.0-alpha6' }
1993 |
1994 |
[](javascript:void(0); "复制代码")
1995 |
1996 |
1997 |
1998 | ## 84.JsBridge
1999 |
2000 |
一句话介绍:一款提供WebView和Javascript通信能力的框架
2001 |
2002 |
上榜理由:该框架提供给了**允许H5页面调用通过JS调用App方法的能力;**3.1K个star,简洁的通讯方式,值得每一个Web\Hybrid App开发者尝试
2003 |
2004 |
gtihub [https://github.com/lzyzsd/JsBridge](https://github.com/lzyzsd/JsBridge)
2005 |
2006 |
作者:hi大头鬼hi
2007 |
2008 |
使用:
2009 |
2010 |
2011 |
2012 |
[](javascript:void(0); "复制代码")
2013 |
2014 |
repositories { // ...
2015 | maven { url "https://jitpack.io" }
2016 | }
2017 |
2018 | dependencies {
2019 | compile 'com.github.lzyzsd:jsbridge:1.0.4' }
2020 |
2021 |
[](javascript:void(0); "复制代码")
2022 |
2023 |
2024 |
2025 | ## 85.richeditor-android
2026 |
2027 |
一句话介绍:一款强大的富文本编辑框架
2028 |
2029 |
上榜理由:2.8k个star,榜单里第一个为TextView提供扩展能力的框架,你暂时不需要它,但不能不知道它
2030 |
2031 |
github [https://github.com/wasabeef/richeditor-android](https://github.com/wasabeef/richeditor-android)
2032 |
2033 |
作者:Daichi Furiya
2034 |
2035 |
使用:
2036 |
2037 |
2038 |
2039 |
[](javascript:void(0); "复制代码")
2040 |
2041 |
repositories {
2042 | jcenter()
2043 | }
2044 |
2045 | dependencies {
2046 | compile 'jp.wasabeef:richeditor-android:1.2.2' }
2047 |
2048 |
[](javascript:void(0); "复制代码")
2049 |
2050 |
2051 |
2052 | ## 86.Transitions-Everywhere
2053 |
2054 |
一句话介绍:一款教你正确使用Transitions API(Android 转场动画API)的教学型项目
2055 |
2056 |
上榜理由:你可能还未尝试过Android API的Transitions 框架,可能听过,但却无法做出优雅奇妙的动效——别担心,Transitions-Everywhere正如它的名字一样,它将带你全面体验Transitions 的强大之处
2057 |
2058 |
github [https://github.com/andkulikov/Transitions-Everywhere](https://github.com/andkulikov/Transitions-Everywhere)
2059 |
2060 |
作者:Andrey Kulikov
2061 |
2062 |
使用:
2063 |
2064 |
2065 |
2066 |
dependencies {
2067 | compile "com.andkulikov:transitionseverywhere:1.7.4" }
2068 |
2069 |
2070 |
2071 | ## 87.android-viewbadger
2072 |
2073 |
一句话介绍:能够快速的**为Android 视图加入“勋章**”能力的框架
2074 |
2075 |
上榜理由:如果说勋章一词听起来陌生,那么显示已读未读个数、小红点标记信息这一类词语你一定不太陌生,笔者相信在诸位实际开发中经常遇到为某些item加入小红点标记的需求,聪明的各位一定有着各种实现方案,为什么不能快速优雅的完成呢?android-viewbadger可以帮你实现,当然,在某些情况下,你需要具备修改源码的能力,以符合设计MM的需求!值得注意的是,这宽项目已经五年没有更新了!
2076 |
2077 |
github [https://github.com/jgilfelt/android-viewbadger](https://github.com/jgilfelt/android-viewbadger)
2078 |
2079 |
作者:Jeff Gilfelt
2080 |
2081 |
使用:
2082 |
2083 |
clone源码到本地
2084 |
2085 |
2086 |
2087 |
View target = findViewById(R.id.target_view);
2088 | BadgeView badge = new BadgeView(this, target);
2089 | badge.setText("1");
2090 | badge.show();
2091 |
2092 |
2093 |
2094 | ## 88.AndroidWiFiADB
2095 |
2096 |
一句话介绍:一款不用数据线也可以让你调试手机设备APP的插件项目
2097 |
2098 |
上榜理由:你是否还在担心测试过程中**高强度的拔插数据线**对手机电池和USB端口**造成**终生难以弥补**的损害**?别担心,有wifi有AndroidWiFiADB,无须数据线也可以调试应用了,更有趣的是,在测试工程师一边拿着手机一边找你聊bug的时候,你已经偷偷在它的手机上修复了bug,深藏功与名!
2099 |
2100 |
github [https://github.com/pedrovgs/AndroidWiFiADB](https://github.com/pedrovgs/AndroidWiFiADB)
2101 |
2102 |
作者:Pedro Vicente Gómez Sánchez
2103 |
2104 |
使用:
2105 |
2106 |
2107 |
2108 |
Preferences/Settings->Plugins->Browse Repositories->serch AndroidWiFiADB
2109 |
2110 |
2111 |
2112 | ## 89.emojicon
2113 |
2114 |
一句话介绍:一款提供在TextView、EdiText展示表情包能力的框架
2115 |
2116 |
上榜理由:2.7k个star,,榜单第二款增强TextView显示能力的框架,这款专为表情包设计,如果你曾经好奇微信、QQ的表情显示是如何做到的?这款框架一定能满足你的求知欲。
2117 |
2118 | ## 90.packer-ng-plugin
2119 |
2120 |
一句话介绍:一款打爆工具插件
2121 |
2122 |
上榜利用:笔者尽力维护榜单涉及范围的全面性,因此引入此插件项目——项目号称完成100个渠道包只需要10秒钟,在市面上各种各样多渠道打包方案的今天,选择一款适合自己团队的,才是上上选择
2123 |
2124 |
github [https://github.com/mcxiaoke/packer-ng-plugin](https://github.com/mcxiaoke/packer-ng-plugin)
2125 |
2126 |
作者:Xiaoke Zhang
2127 |
2128 |
使用:
2129 |
2130 |
2131 |
2132 |
[](javascript:void(0); "复制代码")
2133 |
2134 |
buildscript {
2135 | ......
2136 | dependencies{ // add packer-ng
2137 | classpath 'com.mcxiaoke.gradle:packer-ng:1.0.9' }
2138 | }
2139 |
2140 |
[](javascript:void(0); "复制代码")
2141 |
2142 |
2143 |
2144 |
2145 |
2146 |
[](javascript:void(0); "复制代码")
2147 |
2148 |
apply plugin: 'packer' dependencies {
2149 | compile 'com.mcxiaoke.gradle:packer-helper:1.0.9' }
2150 |
2151 | android { //...
2152 | signingConfigs {
2153 | release { // 满足下面两个条件时需要此配置 // 1\. Gradle版本 >= 2.14.1 // 2\. Android Gradle Plugin 版本 >= 2.2.0 // 作用是只使用旧版签名,禁用V2版签名模式
2154 | v2SigningEnabled false }
2155 | }
2156 | }
2157 |
2158 |
[](javascript:void(0); "复制代码")
2159 |
2160 |
2161 |
2162 | ## 91.android-priority-jobqueue
2163 |
2164 |
一句话介绍:一款提供后台任务管理能力的框架
2165 |
2166 |
上榜理由:如果你是个志在深入研究多线程操作的开发者,这个项目一定不要错过,不论是Activity重新加载、Service使用线程池时的任务优先级和并发问题,都不要担心,Job Manage会照顾优先级,持久性,负载平衡,延迟,网络控制,分组,2.4K个star,优秀的多线程管理能力,况且它依赖的第三方框架很少,值得你一试
2167 |
2168 |
github [https://github.com/yigit/android-priority-jobqueue](https://github.com/yigit/android-priority-jobqueue)
2169 |
2170 |
作者:Yigit Boyar
2171 |
2172 | ## 92.Android-Debug-Database
2173 |
2174 |
一句话介绍:一款提供测试App内部数据库能力的框架
2175 |
2176 |
上榜理由:榜单里第二款针对**调试数据库**的框架,一行代码集成,直接在浏览器增删改查App的数据库,2.3k个star,心动不如行动!
2177 |
2178 |
github [https://github.com/amitshekhariitbhu/Android-Debug-Database](https://github.com/amitshekhariitbhu/Android-Debug-Database)
2179 |
2180 |
作者:AMIT SHEKHAR
2181 |
2182 |
使用:
2183 |
2184 |
2185 |
2186 |
debugCompile 'com.amitshekhar.android:debug-db:1.0.0'
2187 |
2188 |
2189 |
2190 |
浏览器键入
2191 |
2192 |
2193 |
2194 |
http://XXX.XXX.X.XXX:8080
2195 |
2196 |
2197 |
2198 | ## 93.conceal
2199 |
2200 |
一句话介绍:一款facebook提供的加密本地大文件的框架
2201 |
2202 |
上榜理由:如果还在担心App内的图片的隐私问题,这款facebook提供的文件加密框架足以解决你的问题,facebook客户端的图片和数据都是使用conceal加密的
2203 |
2204 |
官网地址:[http://facebook.github.io/conceal/](http://facebook.github.io/conceal/)
2205 |
2206 |
github [https://github.com/facebook/conceal](https://github.com/facebook/conceal)
2207 |
2208 |
作者;facebook
2209 |
2210 |
使用:
2211 |
2212 |
clone项目到本地/官网下载jar
2213 |
2214 | ## 94.ARouter
2215 |
2216 |
一句话介绍:一款提供服务、页面跳转路由的框架
2217 |
2218 |
上榜理由:正如作者宣称的那样,该框架提供:从外部URL映射到内部页面、跨模块的页面跳转(页面解耦)、拦截跳转过程等能力,还有更多功能等你去发掘,2.1K个star,值得为企业级的框架喝彩
2219 |
2220 |
github [https://github.com/alibaba/ARouter](https://github.com/alibaba/ARouter)
2221 |
2222 |
作者:alibaba
2223 |
2224 |
使用:
2225 |
2226 |
2227 |
2228 |
[](javascript:void(0); "复制代码")
2229 |
2230 |
ndroid {
2231 | defaultConfig {
2232 | ...
2233 | javaCompileOptions {
2234 | annotationProcessorOptions {
2235 | arguments = [ moduleName : project.getName() ]
2236 | }
2237 | }
2238 | }
2239 | }
2240 |
2241 | dependencies { // 替换成最新版本, 需要注意的是api // 要与compiler匹配使用,均使用最新版可以保证兼容
2242 | compile 'com.alibaba:arouter-api:x.x.x' annotationProcessor 'com.alibaba:arouter-compiler:x.x.x' ...
2243 | } // 旧版本gradle插件(< 2.2),可以使用apt插件,配置方法见文末'其他#4' // Kotlin配置参考文末'其他#5'
2244 |
2245 |
[](javascript:void(0); "复制代码")
2246 |
2247 |
2248 |
2249 | ## 95.MagicaSakura
2250 |
2251 |
一句话介绍:一款提供多主题切换能力的框架
2252 |
2253 |
上榜理由:框架所提供的能力,一直是本榜单所看重的,这款由bilibili提供的多主题框架,作为榜单所涉及范围能补充,1.9个star,感谢bilibili团队所作出的贡献!
2254 |
2255 |
github [https://github.com/Bilibili/MagicaSakura](https://github.com/Bilibili/MagicaSakura)
2256 |
2257 |
作者:Bilibili
2258 |
2259 |
使用:
2260 |
2261 |
2262 |
2263 |
compile 'com.bilibili:magicasakura:0.1.6@aar'
2264 |
2265 |
2266 |
2267 | ## 96.CustomActivityOnCrash
2268 |
2269 |
一句话介绍:一款当APP crash的时候自动载入某个Activity的框架(而不是显示Unfortunately, X has stopped)
2270 |
2271 |
上榜理由:新奇的创意是榜单所需要的,所以它赢得了1.8K个star;作为开发者应该拥有考虑到各种潜伏的bug的能力,但我们不能总是面面俱到,其他系统端的同事也可能造成程序的意外crash,因此,如何让程序优雅的crash->重启值得我们思考,这款框架就提供了这种能力
2272 |
2273 |
github [https://github.com/Ereza/CustomActivityOnCrash](https://github.com/Ereza/CustomActivityOnCrash)
2274 |
2275 |
作者:Eduard Ereza Martínez
2276 |
2277 |
使用:
2278 |
2279 |
2280 |
2281 |
dependencies {
2282 | compile 'cat.ereza:customactivityoncrash:2.1.0' }
2283 |
2284 |
2285 |
2286 | ```source-groovy-gradle
2287 | 添加到 Application class:
2288 | ```
2289 |
2290 |
2291 |
2292 |
[](javascript:void(0); "复制代码")
2293 |
2294 |
@Override public void onCreate() {
2295 | super.onCreate();
2296 |
2297 | CaocConfig.Builder.create()
2298 | .backgroundMode(CaocConfig.BACKGROUND_MODE_SILENT)
2299 | .enabled(false) //default: true
2300 | .showErrorDetails(false) //default: true
2301 | .showRestartButton(false) //default: true
2302 | .trackActivities(true) //default: false
2303 | .minTimeBetweenCrashesMs(2000) //default: 3000
2304 | .errorDrawable(R.drawable.ic_custom_drawable) //default: bug image
2305 | .restartActivity(YourCustomActivity.class) //default: null (your app's launch activity)
2306 | .errorActivity(YourCustomErrorActivity.class) //default: null (default error activity)
2307 | .eventListener(new YourCustomEventListener()) //default: null
2308 | .apply();
2309 | }
2310 |
2311 |
[](javascript:void(0); "复制代码")
2312 |
2313 |
2314 |
2315 | ## 97.XhsEmoticonsKeyboard
2316 |
2317 |
一句话介绍:最开心的开源表情解决方案
2318 |
2319 |
上榜理由:如果你还在发愁如何为你的APP自制键盘,那么此框架非常适合你,而且还提供表情包展示能力,1.7个star证明了它的独特。此外作者还附赠了高仿微信键盘,QQ键盘的demo,分享给诸位
2320 |
2321 |
github [https://github.com/w446108264/XhsEmoticonsKeyboard](https://github.com/w446108264/XhsEmoticonsKeyboard)
2322 |
2323 |
作者:zhongdaxia
2324 |
2325 |
使用:
2326 |
2327 |
2328 |
2329 |
[](javascript:void(0); "复制代码")
2330 |
2331 |
allprojects {
2332 | repositories {
2333 | jcenter()
2334 | maven { url "https://jitpack.io" }
2335 | }
2336 | }
2337 |
2338 | dependencies {
2339 | compile 'com.github.w446108264:XhsEmoticonsKeyboard:2.0.4' }
2340 |
2341 |
[](javascript:void(0); "复制代码")
2342 |
2343 |
2344 |
2345 | # 三.完整项目
2346 |
2347 | ## 1.iosche
2348 |
2349 |
一句话介绍:谷歌2016开发者大会的展示项目
2350 |
2351 |
上榜理由:github上有13.4k个star,位居企业级项目排行榜第一位,牛逼的开发者,权威的设计模式,标准的项目写法,值得一试;笔者建议初学者down下源码,找到app入口,每个页面走一通,配合设计模式的概念加深理解。
2352 |
2353 |
github [https://github.com/google/iosched](https://github.com/google/iosched)
2354 |
2355 |
作者: Google
2356 |
2357 |
2358 |
2359 | ## 2.Plaid
2360 |
2361 |
一句话介绍:提供设计新闻和灵感的开源app
2362 |
2363 |
上榜理由:标准的material design设计,新闻类app,github上9k的star量值得你摒弃市面上参差不齐的新闻app,快点下手研究它吧!
2364 |
2365 |
github [https://github.com/nickbutcher/plaid](https://github.com/nickbutcher/plaid)
2366 |
2367 |
作者: Nick Butcher
2368 |
2369 | ## 3.PocketHub
2370 |
2371 |
一句话介绍:Github的Android版
2372 |
2373 |
上榜理由:8.7K的star数量,Github的亲生儿子,开放的源码值得各位一探究竟
2374 |
2375 |
github [https://github.com/pockethub/PocketHub](https://github.com/pockethub/PocketHub)
2376 |
2377 |
作者:Fadil Sutomo
2378 |
2379 |
使用:
2380 |
2381 |
down下所有源码
2382 |
2383 | ## 4.Signal Android
2384 |
2385 |
一句话介绍:Signal是一款安全通讯的短信类app,
2386 |
2387 |
上榜理由:7.9K的star数量,工具类app的标签属性,让它在排行榜中独一无二,如果你对短信app有兴趣,可以深入探究一番
2388 |
2389 |
github [https://github.com/WhisperSystems/Signal-Android](https://github.com/WhisperSystems/Signal-Android)
2390 |
2391 |
作者:WhisperSystems
2392 |
2393 |
使用:github上down源码
2394 |
2395 | ## 5.android-UniversalMusicPlayer
2396 |
2397 |
一句话介绍:一款跨设备运行的多媒体app
2398 |
2399 |
上榜理由:googlesamples良心推荐,github拥有7.9k个star,可以在Android手机,汽车,平板,穿戴设备上使用,对于仅仅体验过Android手机开发的程序员,会不会很新奇呢?你值得一试!
2400 |
2401 |
github [https://github.com/googlesamples/android-UniversalMusicPlayer](https://github.com/googlesamples/android-UniversalMusicPlayer)
2402 |
2403 |
作者:Google
2404 |
2405 |
使用:github上down源码
2406 |
2407 | ## 6.HomeMirror
2408 |
2409 |
一句话介绍:如果你是个爱美的家伙那么你一定需要这面镜子!
2410 |
2411 |
上榜理由:工具类App很难再github上有一席之地,除非它提供特别新奇的功能,比如HomeMirror,github上有用7599个star,仅仅因为它提供了镜子的功能。从现在起,Android 手机、pad,都将成为你旅游居家神器,值得拥有!
2412 |
2413 |
github [https://github.com/HannahMitt/HomeMirror](https://github.com/HannahMitt/HomeMirror)
2414 |
2415 |
作者:Hannah Mittens
2416 |
2417 |
HomeMirror初体验:
2418 |
2419 | 
2420 |
2421 | ## 7.ExoPlayer
2422 |
2423 |
一句话介绍:一款 替代Android原生MediaPlayer的媒体播放器
2424 |
2425 |
上榜理由:也许是Google对自家MediaPlayer API不甚满意,所以诞生了ExoPlayer,ExoPlayer提供了强大的扩展API,使用它来制作多媒体播放器更快捷,更容易扩展,对多媒体播放器感兴趣的同仁们可以用它来大展身手了!6.9K个star,证明它有多受开发者们喜爱,更难能可贵的是,google还在更新维护着!
2426 |
2427 |
官网地址:[https://google.github.io/ExoPlayer/](https://google.github.io/ExoPlayer/)
2428 |
2429 |
github [https://github.com/google/ExoPlayer](https://github.com/google/ExoPlayer)
2430 |
2431 |
作者:google
2432 |
2433 |
使用:
2434 |
2435 |
2436 |
2437 |
[](javascript:void(0); "复制代码")
2438 |
2439 |
repositories {
2440 | jcenter()
2441 | }
2442 | compile 'com.google.android.exoplayer:exoplayer:r2.X.X' compile 'com.google.android.exoplayer:exoplayer-core:r2.X.X' compile 'com.google.android.exoplayer:exoplayer-dash:r2.X.X' compile 'com.google.android.exoplayer:exoplayer-ui:r2.X.X'
2443 |
2444 |
[](javascript:void(0); "复制代码")
2445 |
2446 |
2447 |
2448 | ## 8.cheesesquare
2449 |
2450 |
一句话介绍:Android 材料设计的展示性项目
2451 |
2452 |
上榜理由:作者被称为是Android Support Lib背后的男人,他写出的展示性项目,怎能不推荐上榜?材料设计已经炒了好几年了,但作为最权威的展示项目,你一定需要它,6.7个star证明了它是多么的受欢迎。
2453 |
2454 |
github [https://github.com/chrisbanes/cheesesquare](https://github.com/chrisbanes/cheesesquare)
2455 |
2456 |
作者:Chris Banes
2457 |
2458 | ## 9.DanmakuFlameMaster
2459 |
2460 |
一句话介绍:android端开源弹幕引擎
2461 |
2462 |
上榜理由:bilibili出品,保证了它的纯种品质,并且ndk源码也一并开源,可谓业界良心,该弹幕引擎的开源节省了很多视频直播小伙伴的开发成本,笔者强力推荐!
2463 |
2464 |
github [https://github.com/Bilibili/DanmakuFlameMaster](https://github.com/Bilibili/DanmakuFlameMaster)
2465 |
2466 |
作者:bilibili
2467 |
2468 |
使用:
2469 |
2470 |
2471 |
2472 |
[](javascript:void(0); "复制代码")
2473 |
2474 |
repositories {
2475 | jcenter()
2476 | }
2477 |
2478 | dependencies {
2479 | compile 'com.github.ctiao:DanmakuFlameMaster:0.8.3' compile 'com.github.ctiao:ndkbitmap-armv7a:0.8.3' # Other ABIs: optional
2480 | compile 'com.github.ctiao:ndkbitmap-armv5:0.8.3' compile 'com.github.ctiao:ndkbitmap-x86:0.8.3' }
2481 |
2482 |
[](javascript:void(0); "复制代码")
2483 |
2484 |
2485 |
2486 | ## 10.facebook-android-sdk
2487 |
2488 |
一句话介绍:一款提供**接入facebook平台能力**的框架
2489 |
2490 |
上榜理由:无论是你有接入facebook的需求,还是有学习自制sdk的需求,这都是很棒的途径;如何开发一套企业级sdk,是进阶优秀开发工程师的必须之路,4.1k个star,facebook持久更新质量保证,你值得拥有!
2491 |
2492 |
github [https://github.com/facebook/facebook-android-sdk](https://github.com/facebook/facebook-android-sdk)
2493 |
2494 |
作者:facebook
2495 |
2496 |
使用:
2497 |
2498 |
2499 |
2500 |
https://developers.facebook.com/docs/android
2501 |
2502 |
2503 |
2504 | ## 11.android-oss
2505 |
2506 |
一句话介绍:国外创意社区Kickstarter 开源的Android版客户端
2507 |
2508 |
上榜理由:精致的企业级APP,每个页面处理得都很棒,如果你志在成为一个优雅工程师,这款开源项目一定适合你,3.8k个star证明了它不俗的生命力
2509 |
2510 |
github:[https://github.com/kickstarter/android-oss](https://github.com/kickstarter/android-oss)
2511 |
2512 |
作者:kickstarter
2513 |
2514 |
使用;
2515 |
2516 |
clone源码到本地
2517 |
2518 | ## 12.k-9
2519 |
2520 |
一句话介绍:Android端客户端邮件App
2521 |
2522 |
上榜理由:还记得张小龙的成名作——FoxMail吗?如果你想做一款移动端Email App,k-9具有很好的借鉴价值,此外对于应用层协议你也会有更深的认识
2523 |
2524 |
官网地址: [https://k9mail.github.io/](https://k9mail.github.io/)
2525 |
2526 |
github [https://github.com/k9mail/k-9](https://github.com/k9mail/k-9)
2527 |
2528 |
使用:
2529 |
2530 |
clone项目到本地
2531 |
2532 | ## 13.Timber
2533 |
2534 |
一句话介绍:一款音乐播放器类App
2535 |
2536 |
上榜理由:3K个star,完全按照材料设计规范,提供十几种播放特性,而且还提供App的通用设置能力,这一点做的同样优秀,对于志在提升开发技术的同学值得一试
2537 |
2538 |
github [https://github.com/naman14/Timber](https://github.com/naman14/Timber)
2539 |
2540 |
作者:Naman Dwivedi
2541 |
2542 |
使用:
2543 |
2544 |
clone源码是一个好习惯
2545 |
2546 | ## 14.remusic
2547 |
2548 |
一句话介绍:仿网易云音乐Android版App
2549 |
2550 |
上榜理由:学习完Timer,是否还不太满足你的胃口?remusic可以满足你的胃口——它甚至可以拿去直接当上线项目了!2.9K个star,基于Timber的设计(入手的前提是先搞懂Timber)值得入手;有一个问题:如果由你重构,你会如何做呢?
2551 |
2552 |
github [https://github.com/aa112901/remusic](https://github.com/aa112901/remusic)
2553 |
2554 |
作者:MW
2555 |
2556 |
使用:
2557 |
2558 |
clone项目
2559 |
2560 | ## 15.Douya
2561 |
2562 |
一句话介绍:开源豆瓣客户端
2563 |
2564 |
上榜理由:一款功能全面、架构设计不俗的开源APP;仅仅是对豆瓣APP设计思路不满而进行的重构项目,可见作者对产品的痴迷和热爱,2.9K个star,证明该项目并不是头脑发热一时兴起的作品,如果每一个idea都能实现,那我们的世界将会多么美妙!
2565 |
2566 |
github [https://github.com/DreaminginCodeZH/Douya](https://github.com/DreaminginCodeZH/Douya)
2567 |
2568 |
作者:Zhang Hai
2569 |
2570 |
使用:
2571 |
2572 |
clone项目到本地
2573 |
2574 | ## 16.BookReader
2575 |
2576 |
一句话介绍:开源小说阅读器
2577 |
2578 |
上榜理由:2.7K个star,榜单里第一款阅读器APP,具有很高的学习价值(针对有兴趣往阅读工具类方向发展的同学)
2579 |
2580 |
github [https://github.com/JustWayward/BookReader](https://github.com/JustWayward/BookReader)
2581 |
2582 |
作者:JustWayward 团队
2583 |
2584 |
使用:
2585 |
2586 |
clone到本地
2587 |
2588 | ## 17.bilibili-android-client
2589 |
2590 |
一句话介绍:高仿bilibili的Android客户端
2591 |
2592 |
上榜理由:2.5K个star,榜单里第一款视频直播开源App;适合对视频直播、社区互动感兴趣的同学;bilibili-android-client里使用了很多大型框架,此项目并不适合基础薄弱的同学,不要灰心,学习页面的布局设计也是值得的!
2593 |
2594 |
github [https://github.com/HotBitmapGG/bilibili-android-client](https://github.com/HotBitmapGG/bilibili-android-client)
2595 |
2596 |
作者:Hcc
2597 |
2598 |
使用:clone到本地
2599 |
2600 | ## 18.AndroidChromium
2601 |
2602 |
一句话介绍:Android版chrome浏览器
2603 |
2604 |
上榜理由:正如作者宣称的那样:
2605 |
2606 | *
谷歌浏览器安卓版源码项目
2607 | *
世界级的安卓架构
2608 | *
理清本项目业务逻辑完全可以胜任国内一线公司工程师
2609 |
2610 |
对于志在梳理浏览器框架的你,值得拥有
2611 |
2612 |
github [https://github.com/JackyAndroid/AndroidChromium](https://github.com/JackyAndroid/AndroidChromium)
2613 |
2614 |
作者:JackYAndroid
2615 |
2616 |
使用:
2617 |
2618 |
clone源码到本地
2619 |
2620 | # 四.开发框架:
2621 |
2622 | #
(排名无先后、只按类型划分)
2623 |
2624 | ## 1.libgdx[
2625 | ](https://github.com/libgdx/libgdx)
2626 |
2627 |
一句话介绍:一款跨平台的android端游戏开发框架
2628 |
2629 |
上榜理由:android端开发框架类第一名,11.7K的star量,游戏框架是它的专属标签,更重要的是它是跨平台的
2630 |
2631 |
官网地址 [http://libgdx.badlogicgames.com/](http://libgdx.badlogicgames.com/)
2632 |
2633 |
github [https://github.com/libgdx/libgdx](https://github.com/libgdx/libgdx)
2634 |
2635 | ## 2.xUtils
2636 |
2637 |
一句话介绍:老牌企业级开发框架
2638 |
2639 |
上榜理由:4.9K个star,xUtils作为上古时期程序员备受推崇的开发框架,最大的原因——省事。xUtls包含四大模块,与之而来的是提供四大操作能力:数据操作、UI操作、Http协议操作、图片操作。xUtils作为笔者初学Android框架设计的导师型项目,在笔者多年经验中,看到xUtils作为众多中小银行Android端框架方案首选,足以证明它的受欢迎程度。该框架现在已经更新到了xUtils3,如果你对Android框架涉及有一定的想法,可以从xUtils入手,进阶为框架大师行列。虽然框架中很多引擎已经过时,各个模块的做法都可以用其他框架替代,但xUtils作为国内开发者的骄傲,上古时期的框架宠儿,值得你拥有!
2640 |
2641 |
github [https://github.com/wyouflf/xUtils](https://github.com/wyouflf/xUtils)
2642 |
2643 |
作者:wyouflf
2644 |
2645 |
使用:
2646 |
2647 |
2648 |
2649 |
compile 'org.xutils:xutils:3.5.0'
2650 |
2651 |
2652 |
2653 | ## 3.android-common
2654 |
2655 |
一句话介绍: 一款android快速开发框架
2656 |
2657 |
上榜理由:滴滴资深级Android工程师出品,历经多年开发者的检验,以4.3K屹立于快速开发框架榜第三名,该框架提供了图片缓存、Http缓存、DropDownListView、下载模块、开发常用工具类等,作为上古时期程序员最早的**总结性开发框架**,它是一代人智慧的结晶,值得我们为作者Trinea鼓掌喝彩
2658 |
2659 |
github https://github.com/Trinea/android-common
2660 |
2661 |
作者:Trinea
2662 |
2663 |
使用:
2664 |
2665 | clone代码到本地
2666 |
2667 | ## 4.Vitamio
2668 |
2669 |
一句话介绍:一款支持跨平台的Android多媒体开发框架
2670 |
2671 |
上榜理由:如果之前提到的exoplayer不能满足你开发多媒体的需求,那我保证vitamio值得你一试
2672 |
2673 |
官网地址:[https://www.vitamio.org/](https://www.vitamio.org/)
2674 |
2675 |
github [https://github.com/yixia/VitamioBundle](https://github.com/yixia/VitamioBundle)
2676 |
2677 |
作者:yixia团队
2678 |
2679 |
使用:
2680 |
2681 |
clone源码到本地
2682 |
2683 |
2684 |
2685 | ## 5.Weex
2686 |
2687 | 一句话介绍:移动端跨平台开发的解决方案
2688 |
2689 | 上榜理由:14.4K个star,有成熟应用案例的企业级混合开发框架,阿里巴巴出品,为什么不试试呢?
2690 |
2691 | 官网地址:[https://weex.apache.org/cn/](https://weex.apache.org/cn/)
2692 |
2693 | github [https://github.com/alibaba/weex](https://github.com/alibaba/weex)
2694 |
2695 | 作者:alibaba
2696 |
2697 | ## 6.cordova-android(Hybrid 开发框架、WebApp开发框架)
2698 |
2699 | 一句话介绍:跨平台的开发框架
2700 |
2701 | 上榜理由:cordova有足够的能力完成混合开发、WebApp开发的需求:不论你是Web开发者,或者是Native开发者,使用cordova都可以作出跨平台的App
2702 |
2703 | 官网地址:[http://cordova.axuer.com/docs/zh-cn/latest/guide/overview/index.html](http://cordova.axuer.com/docs/zh-cn/latest/guide/overview/index.html)
2704 |
2705 | github [https://github.com/apache/cordova-android](https://github.com/apache/cordova-android)
2706 |
2707 | ## 7.react-native
2708 |
2709 | 一句话介绍:一款以Javascript的语言来操作多个系统语言(Ios、Android)的框架
2710 |
2711 | 上榜理由:很难讲react-native属于什么类别,它适合前端工程师开发移动端App,也适合Native开发者进行跨平台的开发,但对于Navitve开发者来说陡峭的学习曲线会吓走一大批“框架爱好者”;前端界有一句名言:Web代表着未来,Native代表着现在,而我们处在现在与未来的道路上;49K个star,似乎让我们离未来更进一步
2712 |
2713 | 官网地址: [http://facebook.github.io/react-native/docs/getting-started.html](http://facebook.github.io/react-native/docs/getting-started.html)
2714 |
2715 | github [https://github.com/facebook/react-native](https://github.com/facebook/react-native)
2716 |
2717 | 作者:facebook
2718 |
2719 | # 五.其他:
2720 |
2721 | ## 1.AndroidUtilCode
2722 |
2723 |
一句话介绍:提供了数量庞大的工具类
2724 |
2725 |
上榜理由:10.8K的star个数,足以证明它是多么受欢迎,欢迎你提供常用的工具类壮大它!
2726 |
2727 |
github [https://github.com/Blankj/AndroidUtilCode/blob/master/README-CN.md](https://github.com/Blankj/AndroidUtilCode/blob/master/README-CN.md)
2728 |
2729 | > File → Settings... → Plugins → Browse repositories...
2730 |
2731 | and search for `freeline`.
2732 |
2733 | ##
2.kotiln
2734 |
2735 | 一句话介绍:Google推出的Android编程语言
2736 |
2737 | 上榜理由:就像AndroidStudio取代Eclipse那样,Google将kotiln作为Android的官方编程语言,也许此举是为了避免同Oracle的专利诉讼,但kotlin 100%兼容java,大幅精简java代码量,以及函数式编程的思想这些优异的特性同意值得我们注意,还记得在榜单之前说过的吗?未来是kotlin的,当下是java的,但我们处在当下通往未来的道路上——学习未来的编程语言,提升自己的工作效率,早点下班打豆豆,何乐而不为?
2738 |
2739 | 官网地址:[http://kotlinlang.org/](http://kotlinlang.org/)
2740 |
2741 | github:[https://github.com/JetBrains/kotlin](https://github.com/JetBrains/kotlin)
2742 |
2743 | 使用:
2744 |
2745 | [http://kotlinlang.org/docs/reference/](http://kotlinlang.org/docs/reference/%20) 提供了 api-android用例-书籍等资源
2746 |
2747 | # 六.书籍类项目
2748 |
2749 | #
(排序无先后)
2750 |
2751 | ## 1.Android developer中国官网培训课程
2752 |
2753 |
一句话介绍:符合中国国情的Google开发者官网的子产品——Android开发者官网
2754 |
2755 |
上榜理由:这里有培训课程、API用例课程、Sample用例、依赖库介绍、AndroidStudio官网...等等一系列公开免费的课程,尽管大部分内容还是英文讲解,可是你肯靠着英语词典一篇一篇啃完,相信我,你的Android知识水平将秒杀国内市面上大部分的Android书籍
2756 |
2757 |
官网地址:[https://developer.android.google.cn/training/index.html](https://developer.android.google.cn/training/index.html)
2758 |
2759 |
作者:google
2760 |
2761 | ## 2.android-architecture
2762 |
2763 |
一句话介绍:google提供的Android当下各种基本框架
2764 |
2765 |
上榜理由:看完它,mvp,mvvm都将入切瓜砍菜,秋风扫落叶一般...
2766 |
2767 |
github [https://github.com/googlesamples/android-architecture](https://github.com/googlesamples/android-architecture)
2768 |
2769 |
作者:google
2770 |
2771 | ## 3.andorid-open-project
2772 |
2773 |
一句话介绍:囊括Android几乎所有的开源项目的导航类目录
2774 |
2775 |
上榜理由:23k个star的导航类目录,与其盛名不符的是,该项目的导航、浏览阅读体验做的非常差,建议消遣之余阅读;推荐理由——中国人做的最全的Android 开源项目导航目录
2776 |
2777 |
github [https://github.com/Trinea/android-open-project](https://github.com/Trinea/android-open-project)
2778 |
2779 |
作者:Trinea
2780 |
2781 | ## 4.awesome-android-ui
2782 |
2783 | 一句话介绍:Android的开源项目目录
2784 |
2785 | 上榜理由:国外的一款导航目录,23k个star
2786 |
2787 | github [https://github.com/wasabeef/awesome-android-ui](https://github.com/wasabeef/awesome-android-ui)
2788 |
2789 | # 笔者寄语:
2790 |
2791 |
今年我们的权威框架之旅就结束了,是否感觉到意犹未尽?那太好了,欢迎各位读者加入《Android百大框架排行榜》的讨论之中,可以来[原文链接](http://www.cnblogs.com/jincheng-yangchaofan/articles/7018780.html "Permalink to 2017年Android百大框架排行榜 - 杨超凡_金诚先生 - 博客园")评论留言,也可以参与维护此项目:
2792 |
2793 |
1.我认为XX框架应该上榜,理由XX
2794 |
2795 |
2.我发现文章有几处错误,在XX部分
2796 |
2797 |
3.对于笔者的某些观点我不能苟同,比如XX,我认为XX
2798 |
2799 | ...
2800 |
2801 |
笔者希望收到**有理有据**的评论和未上榜的**框架推荐**,届时笔者会抽取一部分参与评论的小伙伴将,发放共计100RMB的物质奖励!
2802 |
2803 | 2017-10-25 北京
2804 |
2805 |
2806 |
--------------------------------------------------------------------------------