diff --git a/README.md b/README.md index f90fcdf..a91a563 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 @@ -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: