ButterKnife 的使用:
build.gradle:dependencies中添加
compile 'com.jakewharton:butterknife:8.5.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
ButterKnife Zelezny安装方法:
1.File->Settings->Plugins--> 搜索ButterKnife Zelezny->安装
2.重启Android Studio.
3.在activity中右键-> Generate-> Generate ButterKnife Inje->confirm