https://kotlinlang.org logo
Title
i

iex

01/05/2020, 12:02 PM
Hello, I'm coming back to Android development after a long break and wondering what the state of the art is re view initialization? Are we still using butter knife? Or Kotlin extensions? Or something else? (I know at least that Jetpack Compose isn't production ready yet)
a

Amit

01/05/2020, 1:31 PM
try view binding.
r

rkeazor

01/05/2020, 2:30 PM
ViewBinding, and Databinding
c

codeslubber

01/05/2020, 3:25 PM
yeah and Compose is for sure not ready for much of anything…
t

tseisel

01/06/2020, 8:33 AM
To me, the most useful tool for accessing views is still Kotlin Extensions. While not completely safe, it is stable and does not require any boilerplate. Waiting for ViewBinding to become stable.
☝️ 3
i

iex

01/08/2020, 1:29 PM
Thanks everyone! Yeah, I found
ViewBinding
after writing this. Since the preview is already RC it seems safe to use (for an app that will be released in a few months)