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

deviant

05/19/2017, 8:35 AM
yep. i used to
ObservableField
everywhere 🙂 btw i hope they will add some delegated properties support for
ObservableField
, so we can use fields as
Copy code
textLabel = "hello world"
instead of
Copy code
textLabel.set("hello world")
😊 1
☝️ 3
d

David W

05/19/2017, 8:48 AM
deviant: You could do that with operator overloading pretty easily, no?
a

aidanvii

05/19/2017, 8:48 AM
can you overload the assignment operator?
I mean, without property delegates
d

David W

05/19/2017, 8:50 AM
No, I just checked and you can't 😞
d

deviant

05/19/2017, 8:50 AM
dont think so. databinding lib should support delegated properties fields too. if i try to bind it in xml layout, the binding will just don't work
we can bind it as setter/getter pair though
a

aidanvii

05/19/2017, 8:59 AM
```
4 Views