前言
通过对androidstudio插件的使用,可以有效提高码代码的速度,提高工作效率。这是我用到的几个。分享给大家。
插件
1、Android-codegenerator-plugin-intellij
可以通过xml的layout布局,直接生成Activity,Fragment等java代码;
源码:https://github.com/tmorcinek/android-codegenerator-plugin-intellij
官方介绍:http://tmorcinek.github.io/android-codegenerator-plugin-intellij/
使用方法:直接选中layout的xml文件,右击,如图:
2、GsonFormat
可通过Json文本,自动生成相应的bean类
源码地址:https://github.com/zzz40500/GsonFormat
使用方法很简单,源码地址下方有gif图片。
3、android-butterknife-zelezny
快速生成butterknife代码,前提是你引用了butterknife
源码地址:https://github.com/avast/android-butterknife-zelezny
使用方法:
4、android-parcelable-intellij-plugin
用途:快速生成parcelable
源码地址:https://github.com/mcharmas/android-parcelable-intellij-plugin
使用方法:
5、Android Studio Prettify
源码地址:https://github.com/Haehnchen/idea-android-studio-plugin
用法: