ScaterKnife

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion Gogland DataGrip Rider Android Studio
28.10.2016
196
Convert Android ButterKnife Zelezny generated @BindView code to Scala lazy val declaration.

Download plugin

Recent change notes

First blood.

General usage instructions

For generate Scala lazy val in Activity: 1.Generate @BindView code in a Java file; 2.Copy generated code to a Scala file; 3.Import needed packages and do not let IDE convert Java source code to Scala; 4.Ensure nothing is selected; 5.Tools -> ScaterKnife, then Scala lazy val declarations are generated. #############################################################################################For generate Scala lazy val in Fragment / ViewHolder: 1-3.Same as the procedure in Activity; 4.Select the variable name of fragment view / itemView; 5.Tools -> ScaterKnife, then Scala lazy val declarations are generated.