您的位置:首页 > 移动开发 > Android开发

Android Studio 插件系列一

2016-03-17 19:36 337 查看
Android Studio 插件系列一

1. Android Studio如何安装插件以及插件详解

/article/1376613.html 本地安装

http://jingyan.baidu.com/article/fea4511a11f95bf7ba912571.html 在线安装

/article/1367109.html 【必看】

http://blog.csdn.net/column/details/zsl-androidstudio.html 【教程】

http://www.imooc.com/article/1148

http://linroid.com/2014/03/11/2014-03-11-android-studio-plugin-collection/

【真是打开了一扇大门,哪些年错过的插件,原则:莫装太多,小心卡顿,根据需求禁用部分插件。】

2.具体插件

2.1.支持直接在AS面板中进行ADB操作,个人觉得太实用,ctrl + Shift + A 查找中添加常用卸载安装app的一些操作,无需命令行/支持直接在AS面板中进行ADB操作,操作快捷菜单,快速清除数据,重启应用,卸载应用等操作。

https://github.com/pbreault/adb-idea

2.2.parcelable 自动生成插件/生成实现了Parcelable接口的代码的插件。在你的类中,按下alt + insert键弹出插入代码的上下文菜单,你会看到在下面有一个Parcelable,如下所示。选择它之后,就会在你的类当中插入实现了Parcelable接口的代码。从此不用再手动写Parcelable代码。

https://github.com/mcharmas/android-parcelable-intellij-plugin

https://plugins.jetbrains.com/plugin/8086?pr=androidstudio

2.3.根据指定的XML文件快速生成butterknife注入代码,butterKnife自动生成注解插件,包括holder,视图注入插件,如果你的activity布局里面有很多插件,写一堆的findviewbyId岂不是很烦人,它解决了整个问题/快速生成butterknife注解插件/用于在活动、片段和适配器中,从所选的XML布局文件生成ButterKnife注入。该插件提供了生成XML对象注入的最快方式。

https://plugins.jetbrains.com/plugin/7369?pr=androidstudio

https://github.com/avast/android-butterknife-zelezny 【被N次提出】

2.4. Selector生成插件、你需要在drawable文件夹中右键,在弹出的菜单中选择Generate Android Selectors,如下所示,它就会根据你的几个drawable文件夹里的资源的命名,帮你生成Selector代码。当然,你的资源文件需要根据约定的后缀来命名。比如按下状态为_pressed,正常状态为_normal,不可用状态为_disable,等等。

https://github.com/inmite/android-selector-chapek

2.5.material-design-icon资源生成器 icon资源都是官方提供/图标插件

https://github.com/konifar/android-material-design-icon-generator-plugin

2.6.SDK管理插件,自动检测更新并下载

https://github.com/JakeWharton/sdk-manager-plugin

2.7.otto事件导航工具

https://github.com/square/otto-intellij-plugin

2.8.dagger可视化辅助工具

https://github.com/square/dagger-intellij-plugin

2.9.让多渠道打包变的更简单

https://github.com/mcxiaoke/gradle-packer-plugin

2.10.在java 6 7中使用 lambda表达式的插件/Retrolambda 在java 6 7中使用 lambda表达式插件

https://github.com/evant/gradle-retrolambda

2.11.移除Android中无用资源

https://github.com/marcoRS/lint-cleaner-plugin

2.12.方法数计算,对于较大应用避免方法爆棚很有用/方法数统计插件,可用于统计是否达到65536个方法

https://github.com/KeepSafe/dexcount-gradle-plugin

2.13.添加Android单元测试

https://github.com/JCAndKSolutions/android-unit-test

2.14.Robolectric测试辅助工具

https://github.com/robolectric/robolectric-gradle-plugin

2.15.maven gradle 依赖支持自动补全Gradle依赖自动补齐插件

https://github.com/ligi/GradleDependenciesHelperPlugin

2.16.markdown插件idea-markdown编辑器插件

https://github.com/nicoulaj/idea-markdown

2.17.findViewById 生成插件/生成findView代码的使用方法。跳转

Androd Propery Initializer

https://github.com/funnything/OffingHarbor

2.18.搜索代码用Codota/搜索最好的Android代码。不仅只有Github,而且还有知名博客和开发者网站,还罗列比较流行的类库,提供保存代码的CodeBox,当你点击搜索的结果(Java class)的时候,右侧会显示UML 视图,而且左边的代码如果点击会有高亮现实,,而且还会显示Doc,并提供了API Doc 的链接

https://plugins.jetbrains.com/plugin/7638?pr=androidstudio 【大赞】

http://www.jianshu.com/p/59b89c26f9e0

http://www.codota.com/

2.19.没人觉的idea的格式化工具不好用嘛,有了这个,你就可以把以前eclipse的格式化脚本copy到idea来,一下子就治好了强迫症有没有

https://github.com/krasa/EclipseCodeFormatter#instructions

2.20.根据Gson库使用的要求,将JSONObject格式的String 解析成实体,把json数据往粘贴板一贴,自动生成Bean有没有/Json对应的Bean快速生成插件/根据Gson库使用的要求,将JSONObject格式的String 解析成实体

https://github.com/zzz40500/GsonFormat

2.21.idea vim/ideaVim/ideavim兼具ide和vim的优点 【被多次推荐】

https://github.com/JetBrains/ideavim

2.22.acejump/AceJump 快速跳转到屏幕某个位置(Ctrl+;)

2.23Android-Codegenerator-Plugin-Intellij由xml layout自动生成Fragment、ViewHolder、Activity等,免去写findViewById的问题

2.24.发布库插件

https://github.com/msdx/gradle-publish

2.25.DPI计算插件

https://github.com/JerzyPuchalski/Android-DPI-Calculator

2.26.布局文件分组插件/可以给资源文件分组,并且不移动文件,也不会创建文件夹

https://github.com/dmytrodanylyk/folding-plugin 【这个太强大了】

2.27.从布局中生成View的声明插件

https://github.com/Haehnchen/idea-android-studio-plugin

2.28.Android-Drawable-Importer插件为了适应所有Android屏幕的大小和密度,每个Android项目都会包含drawable文件夹。任何具备Android开发经验的开发人员都知道,为了支持所有的屏幕尺寸,你必须给每个屏幕类型导入不同的画板。Android Drawable Importer插件能让这项工作变得更容易。它可以减少导入缩放图像到Android项目所需的工作量。Android Drawable Importer添加了一个在不同分辨率导入画板或缩放指定图像到定义分辨率的选项。

引入AndroidIcons Drawable 选择资源,指定颜色,改变目标资源名字以及选中所有你想引入的资源。然后会自动创建所有缺失的文件夹,如果已经存在相同名字的drawable,则会进行警告。

Scaled Drawable 选择资源并指定分辨率。如果你想缩放引入的图片,你应该选择“其他”选项,然后填充目标分辨率和目标宽度/高度。Multisource-Drawable 引入不同资源的Drawable设计者根据如下结构设计不同资源的Drawable zip文件,引入一个zip文件即可引入不同分辨率的Drawable。

https://github.com/winterDroid/android-drawable-importer-intellij-plugin 【这个强大】

2.29.dea-live-templates 模板

https://github.com/keyboardsurfer/idea-live-templates 【这个太强大了】

2.30.findBugs还不错哟,就是下载太慢了,FindBugs-IDEA、CheckStyle-IDEA 用自动化代替双眼

2.31.可用于将项目中的 string 资源自动翻译为其他语言的 Android Studio/IntelliJ IDEA 插件

https://github.com/westlinkin/AndroidLocalizationer

2.32.ignore .gitignore配置插件。

2.34.Settings Repository 不同设备之间同步Android Studio的配置。

2.35.跳转到31相似功能/管理Android工程中字符串国际化的插件

https://github.com/constantine-ivanov/strings-xml-tools

2.36.eventbus导航插件

https://github.com/kgmyshin/eventbus3-intellij-plugin

2.37.eventbus导航插件/跳转到36

https://github.com/kgmyshin/eventbus-intellij-plugin

2.38.不同于图形化的genymotion插件,这个允许你通过脚本来配置,创建device。

https://github.com/Genymobile/genymotion-gradle-plugin

2.39.跳转到17还有 / 可以生成ViewHolder和findView方法的代码。尤其是在Adapter实现类的getView当中很有用。

https://github.com/spacecowboy/AndroidCodeGenerator

2.40.开发Android应用程序需要伟大的设计和布局。Android Holo Colors Generator则是定制符合喜好的Android应用程序的最简单方法。Android Holo Colors Generator是一个允许你为你的应用程序随心所欲地创建Android布局组件的插件。此插件会生成所有必要的可在项目中使用的相关的XML画板和样式资源。

https://github.com/jeromevdl/android-holo-colors-idea-plugin 【这个太强大了】

2.41.可用于快速定位代码,类似于Sublime编辑器右侧定位视图

https://github.com/Vektah/CodeGlance

2.42.JsonOnlineViewer/可实现直接在android studio中调试接口数据,可以选择请求类型,自定义请求头及请求体,json数据格式化后展示

2.43.可以根据Activity或者fragment的生命周期对其生命周期方法位置进行先后排序, 快捷键Ctrl + alt + K

https://github.com/armandAkop/Lifecycle-Sorter

2.44.快速生成get和set方法的插件,其实系统的也有类似功能,这个更快。

https://github.com/jonstaff/AndroidAccessors

2.45.可根据后缀快速完成代码,这个属于拓展吧,系统已经有这些功能,如sout、notnull等,这个插件在原有的基础上增添了一些新的功能

https://github.com/takahirom/android-postfix-plugin

2.46.terminal,git,github,Juni

2.47.checkStyle

2.48.帮助你在开发阶段方便的检测出内存泄露的问题,

https://github.com/square/leakcanary

2.49.自己正在开发的插件 【暂时没用】

已完成的功能:

1.根据setContentView和inflate自动生成findViewById。(很爽有木有

2.[String].toast 即可快速生成Toast的完整语句。

3.[View].clk 即可快速生成完整的onClickLinstener。(会根据Activty是否有实现OnClickListener接口或是否包含实现了OnClickListener的成员变量来决定是否new一个匿名内部类)

https://github.com/cauchywei/AndroidToolsPlugin

2.50.使用WIFI连接设备,彻底摆脱数据线的困扰

https://github.com/pedrovgs/AndroidWiFiADB

2.51.http://fir.im/内测平台很方便有木有。但每次都把文件使用网页上传,不符合我们这么高大上的行业。有了这个插件,上传只用添加token,第一次选择生成的apk 文件的路径,就可以自动上传了。

http://blog.fir.im/geng-xin-ri-zhi150828/

2.52.Code Search 找源码必备

http://grepcode.com/

http://grepcode.com/intellij

2.53.模拟HTTP请求测试与服务端的通讯请求,功能强大~

https://plugins.jetbrains.com/plugin/5951?pr=androidstudio

更多详细讲解:https://www.zhihu.com/question/28026027

http://www.imooc.com/article/1148

http://linroid.com/2014/03/11/2014-03-11-android-studio-plugin-collection/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: