https://kotlinlang.org logo
#android
Title
# android
p

paulex

03/28/2019, 11:21 AM
I'm about using
ButterKnife
for view binding, i wanted to confirm if there is another(better) alternative provided by google itself?
s

Simon Schubert

03/28/2019, 11:23 AM
im sure you know about kotlin synthetic or? https://kotlinlang.org/docs/tutorials/android-plugin.html
1
l

Luka

03/28/2019, 11:25 AM
There’s DataBinding library from Google, but as Simon said, just use Kotlin synthetic properties if all you need is standard binding
👍 2
p

paulex

03/28/2019, 11:55 AM
@Simon Schubert I guess We really learn everyday. I have gone through it Mostly this : https://antonioleiva.com/kotlin-android-extensions/ It really makes sense.
@Luka Yeah, i saw the android data binding library, but i really think that's pretty much about
data-binding
a

arekolek

03/28/2019, 12:05 PM
there are people that say that the only useful part of the data binding library is the view binding mechanism 😛
j

jw

03/28/2019, 12:10 PM
If only that part was separate...
u

慧斌

03/28/2019, 12:59 PM
data-binding and LiveData are great
🕺 1
r

rkeazor

03/28/2019, 7:33 PM
@arekolek databinding is really good. Especially with live data
p

paulex

04/02/2019, 2:58 PM
@rkeazor I'll prolly try out databinding in a future release but for now, i think i just need to remove
findViewById
and the variable declaration; it takes too much space in my code. 😉
r

rkeazor

04/02/2019, 3:57 PM
@paulex you should, its really good in my opinion. it feels good not having to write a setVisibility/setText/setAnythingInView method ever lol.
😂 1
👍 1
5 Views