https://kotlinlang.org logo
#announcements
Title
# announcements
i

iex

06/06/2018, 5:57 AM
is this possible?
Copy code
val predrawListener: ViewTreeObserver.OnPreDrawListener = ViewTreeObserver.OnPreDrawListener {
    // ...
    view.viewTreeObserver.removeOnPreDrawListener(this) // `this` is the outer class!
    false
}
2 Views