hi, what the preffered view binding library? kotli...
# android
u
hi, what the preffered view binding library? kotlin extensions or butterknife or kotterknife?
a
As for me, I prefer Android data binding.
u
isnt hashmap of views more heavy than butterknifes viewBidner object?
ehm, did you mean the actual viewBinding library or that kotlinextension thing
a
I meant Google’s library.
u
okay i just want to get view refences, no need to code in xml, thats weird to me
a
I just wrap XML into <layout>. No more additional code.
r
Android databinding. Kotterknife is just a Kotlin wrapper for butterknife. I don't think its expensive, it just caches the views you are using . And Google has optimized it alot and you can do more things with databinding.
u
isnt kotterknife lazyloading and caching the views? no actual annot. processing?
last time i checked it was one file
p
I prefere synthetic properties because it's one annotation processor less
u
@Paul Woitaschek I might be worrying about nothing, but in a sense, its hashmap which is bloat and access is not actually constant. i.e. slower than direct field access