└── README.md
/README.md:
--------------------------------------------------------------------------------
1 | # AndroidStudioPlugins
2 | Android Studio 常用插件及浅释
3 |
4 | 也可以看我的博客:[Android Studio中常用插件及浅释](http://t.cn/RGr9lIf)
5 |
6 | 插件可以来这个仓库查找:[Android Studio Plugins](http://plugins.jetbrains.com/category/?androidstudio&category_id=all)
7 |
8 | 这里给出几个平时常用的as插件,方便我们的开发。点击标题就直接可以进入插件的github源码查看。
9 |
10 | 如何自己开发插件,请参考鸿洋大神的博客:[自己编写Android Studio插件 别停留在用的程度了](https://mp.weixin.qq.com/s?__biz=MzAxMTI4MTkwNQ==&mid=2650820316&idx=1&sn=49d4e6b68b114a2e8a8e88f3d1b0cd9e&scene=1&srcid=0601lzX1UwNhWeitdRa3Bmfx#rd)
11 |
12 | # [.ignore](https://github.com/hsz/idea-gitignore)
13 | ---
14 |
15 | as第一大插件,版本控制必备,.gitignore内容写法,来这里看看:[git使用之二——.gitignore文件详解 ](http://jp1017.gitcafe.io/2015/12/20/git%E4%BD%BF%E7%94%A8%E4%B9%8B%E4%BA%8C%E2%80%94%E2%80%94-gitignore%E6%96%87%E4%BB%B6%E8%AF%A6%E8%A7%A3/)
16 |
17 | # [AndroidSourceViewer](https://github.com/pengwei1024/AndroidSourceViewer)
18 | ---
19 |
20 | Android Studio 在线查看 Android 和 Java 指定版本源码插件
21 |
22 |
23 |
24 | # [DependenciesVersionChecker](https://github.com/takuaraki/DependenciesVersionChecker)
25 | ---
26 |
27 | 查看依赖的第三方库的历史版本和最新版本, 见博客介绍: http://www.jianshu.com/p/bf45663433b4
28 |
29 |
30 |
31 | # [Android-Resource-Usage-Count](https://github.com/niorgai/Android-Resource-Usage-Count)
32 | ---
33 |
34 | 统计资源文件中每个标签被引用的次数
35 |
36 |
37 |
38 | # [pomodoro-tm](https://github.com/dkandalov/pomodoro-tm)
39 | ---
40 |
41 | 番茄工作法的 Android Studio / IDEA 插件
42 |
43 |
44 |
45 | # [ApkMultiChannelPlugin](https://github.com/nukc/ApkMultiChannelPlugin)
46 | ---
47 |
48 | Android 多渠道打包的 Android Studio / IDEA 插件
49 |
50 |
51 |
52 | # [SVG2VectorDrawable](https://github.com/misakuo/svgtoandroid)
53 | ---
54 | Intellij Platform插件,通过其可以完成从svg文件到Android VectorDrawable的自动化转换
55 |
56 | # [Freeline Plugin](https://github.com/alibaba/freeline/tree/master/android-studio-plugin)
57 | ---
58 |
59 | 阿里秒级编译工具 freeline https://github.com/alibaba/freeline AS插件
60 |
61 |
62 |
63 | # [RoboPOJOGenerator](https://github.com/robohorse/RoboPOJOGenerator)
64 | ---
65 |
66 | Json to POJO(plan-old Java Object) —— GSON, Logan Square, Jackson
67 |
68 |
69 |
70 | # [exynap](http://exynap.com/)
71 | ---
72 |
73 | 帮助开发者自动生成样板代码
74 |
75 |
76 |
77 | # [SingletonTest](https://github.com/luhaoaimama1/SingletonTest)
78 | ---
79 |
80 | 快速生成单例模式的预设
81 |
82 |
83 |
84 | # [img-optimizer-gradle-plugin](https://github.com/chenenyu/img-optimizer-gradle-plugin)
85 | ---
86 |
87 | 一款用于优化png图片的gradle插件,有效减少APK体积,支持极限压缩和无损压缩
88 |
89 | |原图|极限压缩(lossy)|无损压缩(lossless)|
90 | |:---:|:---:|:---:|
91 | |526K|195K(减少63%)|473K(减少10%)|
92 | ||||
93 |
94 | # [drawable-optimizer](https://github.com/fabiomsr/drawable-optimizer)
95 | ---
96 |
97 | ### 功能:优化项目中的 `png` 文件
98 |
99 | 只要配置下 gradle 文件就可以:
100 |
101 | 1 在 root gradle 文件下添加
102 |
103 | ```
104 | classpath 'org.fabiomsr:drawable-optimizer-gradle-plugin:1.0.4'
105 | ```
106 |
107 | 2 在 app 下 gradle 文件配置插件
108 |
109 | ```
110 | apply plugin: 'org.fabiomsr.drawableoptimizer'
111 |
112 |
113 | drawableOptimizer {
114 | optimizer = 'zopfli'
115 | compressionLevel = 9
116 | iterations = 15
117 | onlyOnRelease = true
118 | logLevel = 'info'
119 | }
120 | ```
121 |
122 | # [android-strings-search-plugin](https://github.com/konifar/android-strings-search-plugin)
123 | ---
124 |
125 | This plugin makes it easy to search text in strings resources. https://plugins.jetbrains.com/plugin/8550
126 |
127 |
128 |
129 | # [wakatime](https://github.com/wakatime/jetbrains-wakatime)
130 | ---
131 |
132 | 记录你AS使用时长的插件,当然还支持很多IDE。使用时需要登录配置key,来这里:https://wakatime.com/settings/account
133 |
134 |
135 |
136 | # [Material Theme UI](https://github.com/ChrisRM/material-theme-jetbrains)
137 | ---
138 |
139 | MD 风格主题,强烈建议添加,各种爱的不行不行的
140 |
141 |
142 |
143 | # [Sexy Editor](https://github.com/igorspasic/idea-sexyeditor)
144 | ---
145 |
146 | 设置 as 背景,赶紧上车了
147 |
148 |
149 |
150 | # [Android DPI Calculator](https://github.com/JerzyPuchalski/Android-DPI-Calculator)
151 | ---
152 |
153 | DPI 计算工具
154 |
155 |
156 |
157 |
158 | # [RemoveButterKnife](https://github.com/u3shadow/RemoveButterKnife)
159 | ---
160 |
161 | 帮助去掉 ButterKnife 库的 android studio 插件
162 |
163 |
164 |
165 | # [TranslationPlugin](https://github.com/YiiGuxing/TranslationPlugin)
166 | ---
167 |
168 | IntelliJ IDEA/Android Studio 翻译插件,支持中英互译、单词朗读, 我就用这一款,哈哈
169 |
170 |
171 |
172 | # [intellij-translation](https://github.com/zyuyou/intellij-translation)
173 | ---
174 |
175 | Intellij IDEA 系列编辑器的翻译插件, 目前仅提供 英文 -> 中文 翻译
176 |
177 |
178 |
179 | # [ECTranslation](https://github.com/Skykai521/ECTranslation)
180 | ---
181 |
182 | 可以将英文翻译为中文
183 |
184 |
185 |
186 | # [eventbus3-intellij-plugin](https://github.com/likfe/eventbus3-intellij-plugin)
187 | ---
188 |
189 | EventBus3 事件管理,最新可用
190 |
191 |
192 |
193 | @deprecated
194 | # [eventbus3-intellij-plugin](https://github.com/kgmyshin/eventbus3-intellij-plugin)
195 | ---
196 |
197 | EventBus3 事件管理,已失效
198 |
199 |
200 |
201 | # [eventbus-intellij-plugin](https://github.com/kgmyshin/eventbus-intellij-plugin)
202 | ---
203 |
204 | EventBus 事件管理
205 |
206 |
207 |
208 | # [PermissionsDispatcher](https://github.com/shiraji/permissions-dispatcher-plugin)
209 | ---
210 |
211 | IntelliJ plugin for supporting PermissionsDispatcher
212 |
213 |
214 |
215 | # [Android Methods Count](http://www.methodscount.com/plugins)
216 | ---
217 |
218 | 展示安卓依赖库里方法数,支持的仓库包括:`Maven Central`, `jCenter`, `JitPack`
219 |
220 | 
221 | 
222 |
223 | # [Genymotion](https://www.genymotion.com/#!/download)
224 | ---
225 |
226 | 速度快,运行流畅的安卓模拟器
227 |
228 | 来这里吧,专门给你准备的:[Eclipse和Android Studio下安装Genymotion模拟器插件](http://www.ebaina.com/bbs/forum.php?mod=viewthread&tid=8418&extra=page%3D1)
229 |
230 | # [ButterKnife Zelezny](https://github.com/avast/android-butterknife-zelezny)
231 | ---
232 |
233 | Android Studio plug-in for generating ButterKnife injections from selected layout XML.
234 |
235 | 插件下载如下:
236 |
237 | 
238 |
239 | 要配合一个库com.jakewharton:butterknife:7.0.1使用,把该库添加到build.gradle脚本里即可。
240 |
241 | 
242 |
243 | 使用如下:
244 |
245 | 比如我们在activity的布局里定义了一个文本框,三个按钮,共四个id,然后我们来注解一下:鼠标放setContentView(R.layout.activity_main);下的activity_main任意位置,alt+insert,然后注解:
246 |
247 | 
248 |
249 | # [Android Studio Prettify](https://github.com/Haehnchen/idea-android-studio-plugin)
250 | ---
251 |
252 | Android Studio plugin with some tools and usability improvements, Generator for inflater and activity setContentView view variables.
253 |
254 | 如果你布局里有多个id,在activity里findViewById()会手写很多次,即使有ide辅助,但是还是略慢,这个插件就来释放你双手,作者的例子:
255 |
256 | 
257 |
258 | 
259 |
260 | 当然如果快速注解的话就用上面的ButterKnife咯。
261 |
262 | # [ADB WIFI](https://github.com/layerlre/ADBWIFI)
263 | ---
264 |
265 | 通过wifi调试你的安卓app,释放usb数据线,实现调试无处不在。。。
266 |
267 | 使用方法:
268 | 确保你的手机和电脑在同一wifi下,首先用usb连接手机很电脑,第一次还是需要的,后面连接完成后可以拔掉。然后连接他们, Tools → Android → ADB WIFI → ADB USB to WIFI 成功后会在右上角有个对话框,提示成功。然后拔掉你的数据线,调试无处不在模式开启。。。
269 |
270 | 
271 |
272 | # [GsonFormat](https://github.com/zzz40500/GsonFormat)
273 | ---
274 |
275 | 根据JSONObject格式的字符串,自动生成实体类参数。
276 | 最新的1.2.0版本新增处女座模式 →_→ 是不是很贴心!
277 |
278 | 处女座模式就是给json每个key都可以配置生成的filedName,可能因为服务端的原因,或者历史的原因,导致服务器返回的字段名诡异,或是歧义的缩写。这个在之前的版本是不支持这个。
279 |
280 | 作者给出的例子:
281 |
282 | 有如下json数据:
283 |
284 | ```xml
285 | {
286 | "name": "王五",
287 | "gender": "man",
288 | "age": 15,
289 | "height": "140cm",
290 | }
291 | ```
292 |
293 | 生成实体类操作如下,win和linux下的快捷键是alt+insert
294 |
295 | 
296 |
297 | # [LeakCanary](https://github.com/square/leakcanary)
298 | ---
299 |
300 | 良心企业Square最近刚开源的一个非常有用的工具,使用方法请看我的另一片文章:[Android Studio 插件之内存泄露检测LeakCanary使用](http://jp1017.gitcafe.io/2015/12/20/Android-Studio-%E6%8F%92%E4%BB%B6%E4%B9%8B%E5%86%85%E5%AD%98%E6%B3%84%E9%9C%B2%E6%A3%80%E6%B5%8BLeakCanary%E4%BD%BF%E7%94%A8/)
301 |
302 | # [codota](https://www.codota.com/)
303 | ---
304 |
305 | 该网站搜集了大量的代码,号称超过700W的代码实例。
306 | 它提供了chrome插件和as插件。
307 |
308 | 按照同样的方式安装codota插件之后,重启AS。使用快捷键ctrl + k,即可打开搜索界面,如果你的快捷键有冲突,随便打开一个界面,然后右键就可以看到Search Cotoda选项。
309 |
310 | # [Android Code Generator](https://github.com/tmorcinek/android-codegenerator-plugin-intellij)
311 | ---
312 |
313 | 如果你的xml布局里有n个id,需要用findViewById找到的话,手动的话,很累,这个插件就是释放你的双手,轻轻一点,轻松生成代码,然后你复制粘贴到你的代码就ok,我们来看:
314 |
315 | 
316 |
317 | # [Android Postfix completion](https://github.com/takahirom/android-postfix-plugin)
318 | ---
319 |
320 | 该插件可以快速书写log、toast等代码
321 |
322 | 
323 |
324 | 我们来具体操作:
325 |
326 | 
327 |
328 | # [Android Selectors Generate](https://github.com/inmite/android-selector-chapek)
329 | ---
330 |
331 | Android Studio plugin which automatically generates drawable selectors from appropriately named resources.
332 |
333 | 自动生成选择器,这玩意好用,很赞,但是要注意drawable下文件后缀哦,告诉美工小妹妹命名好哦,哈哈。
334 |
335 | 文件后缀是这样的:
336 |
337 | 
338 |
339 | 使用方法:
340 |
341 | 1 右击drawable文件夹:
342 |
343 | 
344 |
345 | 2 选择Generate Android Selectors
346 |
347 | 
348 |
349 | 3 自动生成选择器
350 |
351 | 
352 |
353 | # [Android File Grouping](https://github.com/dmytrodanylyk/folding-plugin)
354 | ---
355 |
356 | 去官网学习吧,用处不是很大,方便阅读。
357 |
358 | # [FindBugs-IDEA](https://github.com/andrepdo/findbugs-idea/tree/master)
359 | ---
360 |
361 | 顾名思义,就是帮你找程序bug咯,自己研究去吧,给力,感恩作者。
362 |
363 | # [Android Parcelable code generator](https://github.com/mcharmas/android-parcelable-intellij-plugin/)
364 | ---
365 |
366 | 安卓下,推荐用Parcelable来实现数据序列化,如果需要实现Serilizeable接口的,也有插件,[SerializableParcelableGenerator](https://github.com/bunnyblue/SerializableParcelableGenerator)
367 |
368 | 使用也很简单,进入要序列化的bean类里,windows,linux下直接快捷键alt+insert,mac下右键Generator, 可以看到有个选项Parcelable,然后直接点击,就序列化完成咯。
369 |
370 | 
371 |
372 | # [Android Drawable Importer](https://github.com/winterDroid/android-drawable-importer-intellij-plugin)
373 | ---
374 |
375 | 最常用的功能就是生成不同尺寸的图标,
376 |
377 | 我这里有个需求,美工妹妹要陪男朋友,然后只给我一套xxh的图标,那么这个工具就是来解放你们的,手把手的教:
378 |
379 | 
380 |
381 | # [android-material-design-icon-generator-plugin](https://github.com/konifar/android-material-design-icon-generator-plugin)
382 | ---
383 |
384 | This plugin help you to set material design icon to your project.
385 |
386 | 
387 |
388 | # [AndroidStudioSuperPlugin](https://github.com/b2b2244424/AndroidStudioSuperPlugin)
389 | ---
390 |
391 | 这个是今天(2016年植树节)早上发现的,是几个插件的集成,包括:
392 |
393 | + Android Studio Prettify
394 | + GsonFormat
395 | + Android Code Generator
396 | + SelectorChapek
397 | + Android Parcelable Generator
398 | + folding-plugin
399 | + Lifecycle-Sorter
400 |
401 | 有了这个,可以删掉相关的插件咯,谢谢,哈哈哈
402 |
403 | # [CodeGlance](https://github.com/Vektah/CodeGlance)
404 | ---
405 |
406 | Intelij IDEA plugin for displaying a code mini-map similar to the one found in Sublime
407 |
408 | 
409 |
410 | # [lint-cleaner-plugin](https://github.com/marcoRS/lint-cleaner-plugin)
411 | ---
412 |
413 | ### 功能:清除项目中的无用资源
414 |
415 | 只要配置下 gradle 文件就可以:
416 |
417 | 1 在 root gradle 文件下添加
418 |
419 | ```
420 | classpath 'com.droidtitan:lint-cleaner-plugin:0.3.0'
421 | ```
422 |
423 | 2 在 app 下 gradle 文件配置插件
424 |
425 | ```
426 | apply plugin: 'com.droidtitan.lintcleaner'
427 |
428 |
429 | lintCleaner {
430 | // Exclude specific files
431 | exclude = ['com_crashlytics_export_strings.xml','config.xml']
432 |
433 | // Ability to ignore all resource files. False by default.
434 | ignoreResFiles = true
435 |
436 | // Default path is build/outputs/lint-results.xml
437 | lintXmlFilePath = 'path/to/lint-results.xml'
438 | }
439 | ```
440 |
441 |
442 | 最后,非常感谢您的阅读,有任何疑问,可以后面评论,我们可以互相探讨,共同进步,谢谢!
443 |
444 | 神奇的安卓开发网站:[http://androidcat.com/](http://androidcat.com/)
445 |
446 | 安卓开源库收集整理:[https://github.com/XXApple/AndroidLibs](https://github.com/XXApple/AndroidLibs)
447 |
448 | 分享是一种美德,更是一种生活方式!!
449 |
450 | >也许你会说我是一个梦想者,但我不是唯一的一个。
451 |
452 | >悦分享,越快乐^_^
453 |
454 | 欢迎交流,转载请注明出处,谢谢!
455 |
--------------------------------------------------------------------------------