What is now the preferred way to do view binding? ...
# android
v
What is now the preferred way to do view binding? Kotlin Android Extensions still or?
l
Android View Binding available in AS 3.6 (currently in beta).
v
Thanks
g
Just for the info, extensions still work and still more convenient to use (imho).
a
Data Binding has been there for a while
r
@ghedeon yea true, but I think view binding via databinding is currently the expected way. and whenandroid 3.6, it will be viewbinding
a
if u just need it for not typing findviewbyid like mine I always prefer kotlinx its great without any errors
💯 1
c
Either databinding and just use the references or kotlinx synthetic. I still prefer synthetic.
l
synthetic just broke on me again in the IDE (red code), I just replaced it altogether.
a
yeah synthetic has a lot of gotchas. I was happy to see the slimmed down data binding approach in 3.6