一个可以为你自动生成代码的android studio插件。
感谢jaeger. 本插件参考了: https://github.com/laobie/FindViewByMe
功能:
1 FindViewByMe
自动生成findViewById代码,为你节省定义控件的时间。支持ViewHolder、m前缀。
根据控件生成Java bean,以及setText、getText方法。
2 NewActivityInstance
自动生成Activity的newInstance/newInstanceForResult方法,为你节省activity传值的时间。
3 CustomTemplate
自动编译执行指定的方法,让你随心所欲的定制代码模板。
使用方法:
1 将CodeGenerater.jar拷贝到android studio安装目录/plugins/目录下即可。
2 执行Code - Generate - CodeGenerator菜单打开插件面板。
介绍:
http://blog.csdn.net/wenping1980/article/details/50730547
Thanks for jaeger. I refer to his plugin: https://github.com/laobie/FindViewByMe
An Android Studio plugin which can generate code automatically for you.
Current usages:
1 Generate findViewById for you. Saving your time for defining widget varibles.
2 Generate java bean class for you as well as setText/getText method.
3 Generate newInstance/newInstanceForResult method for Activities which can pass values between activities.