Open mykola-dev opened 7 years ago
I've been playing with Anko and done some working POC example: https://github.com/deviant-studio/anko-binding-poc/blob/master/app/src/main/java/ds/ankobindings/MainLayout.kt#L32
Should it really be a part of Anko? Here's standalone implementation: https://github.com/Miha-x64/reactive-properties#sample-usage-in-gui-application
it should, because is a basic feature in android, so most probably most of developers could want to use it too
@jlberrocal I don't think Anko should re-implement observables, bindings, etc. It's better to find one good implementation and contribute to it.
i'm already using a small variant of this implementation and until now has been working fine
It looks extremely immature. With a single commit. It's just an idea, a prototype. Which way do you unbind views?
Dude did you read the link I share? There is explained how to unbind, anyway is not very common stop listening for changes, if you're going in data binding direction is because you need to check for changes, no because you could want to be binding and unbinding
This is a good and mature implementation https://github.com/lightningkite/kotlin-anko-observable
First of all thank you for this great library. Still it is not very convenient to bind real data to the views. It would be nice to have some api to be able to do at least one way binding:
btw looks like these libs built on top of anko https://github.com/agrosner/KBinding https://github.com/BennyWang/KBinding https://github.com/LewisRhine/AnkoDataBindingTest