https://kotlinlang.org logo
Title
v

vpriscan

11/24/2019, 12:18 PM
What is now the preferred way to do view binding? Kotlin Android Extensions still or?
l

louiscad

11/24/2019, 12:42 PM
Android View Binding available in AS 3.6 (currently in beta).
v

vpriscan

11/24/2019, 12:49 PM
Thanks
g

ghedeon

11/24/2019, 2:25 PM
Just for the info, extensions still work and still more convenient to use (imho).
a

Anastasia Finogenova

11/24/2019, 3:27 PM
Data Binding has been there for a while
r

rkeazor

11/25/2019, 12:50 AM
@ghedeon yea true, but I think view binding via databinding is currently the expected way. and whenandroid 3.6, it will be viewbinding
a

am414

11/25/2019, 4:03 AM
if u just need it for not typing findviewbyid like mine I always prefer kotlinx its great without any errors
💯 1
c

Christophe Smet

11/25/2019, 9:17 AM
Either databinding and just use the references or kotlinx synthetic. I still prefer synthetic.
l

louiscad

11/25/2019, 10:24 AM
synthetic just broke on me again in the IDE (red code), I just replaced it altogether.
a

Andy Gibel

12/12/2019, 3:16 PM
yeah synthetic has a lot of gotchas. I was happy to see the slimmed down data binding approach in 3.6