Skip to content

Instantly share code, notes, and snippets.

Avatar

Eric Kuck EricKuck

  • BlueLine Labs
  • Chicago, IL
View GitHub Profile
@EricKuck
EricKuck / ButterknifeConductor.kt
Last active May 9, 2019
Kotterknife(ish) view binding for Conductor controllers
View ButterknifeConductor.kt
// Largely borrowed from Jake Wharton's Kotterknife (https://github.com/JakeWharton/kotterknife)
// and paweljaneczek's PR for resetting cached views (https://github.com/JakeWharton/kotterknife/pull/37)
package com.bluelinelabs.conductor.butterknife
import android.view.View
import com.bluelinelabs.conductor.Controller
import java.util.Collections
import java.util.WeakHashMap
import kotlin.properties.ReadOnlyProperty