From 549fbd8e8b89abc6c4ad393b793d819ced34b93c Mon Sep 17 00:00:00 2001 From: Mykola D Date: Wed, 25 Oct 2017 16:28:31 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f90fcdf..52714ca 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # bindingtools -[![GitHub release](https://img.shields.io/github/release/deviant-studio/bindingtools.svg?style=flat-square)]() +[![JitPack](https://img.shields.io/jitpack/v/deviant-studio/bindingtools.svg?style=flat-square)]() Lightweight helper library for Android Kotlin development - Shared Preferences delegates From 408d2d9ce72e3060c02bb73a4485b2ebb8c1729e Mon Sep 17 00:00:00 2001 From: Mykola D Date: Thu, 26 Oct 2017 11:55:24 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 52714ca..a91a563 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,19 @@ withBindable(viewModel) { bind(::text, textLabel) } ``` +#### Comparison with Google Databinding library +\+ don't have to write BindingAdapters
+\+ no code generation (no more missed `BR.id`, don't have to force `clean` in any unclear situation)
+\+ great code completion (compared to XML)
+\+ clean XML files
+\+ can bind anything to anything, not only the View
+\+ can be used with Anko (and any programmatically created views)
+\+ much cleaner way to implement 2-way bindings
+ +\- some reflection
+\- not from Google
+\- only for Kotlin apps
+\- no observables (yet?)
### Shared Preferences binding It's so annoying to deal with SharedPreferences directly: