Android ButterKnife Injections (Support Kotlin)
English Description:
Applicable when the parent class is a kt file and the child class is a java file.
The original plugin could not be used, and I have not found a plugin that meets my needs. Simply self-clone the "android-butterknife-zelezny" source code, modify the adjustment to make this plugin.
Function: - Includes all features of Android ButterKnife Zelezny v1.6.0.
- Add function allows you to choose whether to initialize the butterKnife in activities/fragments.
- Add function allows you to choose whether to use ButterKnife in Lib (about R or R2).
- In the Android Studio settings interface, you can set the default value of the function.
中文说明:
适用于父类为kt文件,子类为java文件的情况。
原插件不能正常使用,我也没有找到能满足需求的插件。我克隆了“android-butterknife-zelezny”的源码,在其基础上修改调整后,发布了这个插件。
功能: - 包含Android ButterKnife Zelezny v1.6.0的所有功能。
- 可选是否初始化ButterKnife(避免原版本使用插件即自动在onCreate中添加ButterKnife.bind(this),适用于在基类中初始化)。
- 可选是否在Lib中使用(使用R2替换R,onClick中使用if-else)。
- 2、3可在Android Studio设置页配置默认值。