Simple plug-in for IntelliJ IDEA and Android Studio that allows one-click creation of ButterKnife view injections.
- in Android Studio: go to
Preferences → Plugins → Browse repositories
and search forButterKnife Zelezny
or
- download it and install via
Preferences → Plugins → Install plugin from disk
- Right click on usage of desired layout file (e.g. setContentView(R.layout.main)), then
Generate
andGenerate ButterKnife Injections
- Pick injections you want, rename them to whatever you want. Also you have option to create ViewHolder for adapters.
You need to include Butterknife library into your project in order to make this work.
- IDEA code generator by Anatoly Korniltsev [https://github.com/kurganec/intellij-android-codegenerator/]