I\'m trying to use Kotlin with Butterknife for my Android Application.
Here is my build.gradle
dependencies {
...
compile \'com.jakewharton:b
Jake Wharton created new library for kotlin called kotterknife: https://github.com/JakeWharton/kotterknife Gradle:
compile 'com.jakewharton:kotterknife:0.1.0-SNAPSHOT'
View:
val lastName: TextView by bindView(R.id.last_name)
// Optional binding.
val details: TextView? by bindOptionalView(R.id.details)
// List binding.
val nameViews: List by bindViews(R.id.first_name, R.id.last_name)
// List binding with optional items being omitted.
val nameViews: List by bindOptionalViews(R.id.first_name, R.id.middle_name, R.id.last_name)