Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-dev committed Oct 30, 2017
2 parents 7b6a6d3 + 408d2d9 commit 5cc4551
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -84,6 +84,19 @@ withBindable(viewModel) {
bind(::text, textLabel)
}
```
#### Comparison with Google Databinding library
\+ don't have to write BindingAdapters<br/>
\+ no code generation (no more missed `BR.id`, don't have to force `clean` in any unclear situation)<br/>
\+ great code completion (compared to XML)<br/>
\+ clean XML files<br/>
\+ can bind anything to anything, not only the View<br/>
\+ can be used with Anko (and any programmatically created views)<br/>
\+ much cleaner way to implement 2-way bindings<br/>

\- some reflection<br/>
\- not from Google<br/>
\- only for Kotlin apps<br/>
\- no observables (yet?)<br/>

### Shared Preferences binding
It's so annoying to deal with SharedPreferences directly:
Expand Down

0 comments on commit 5cc4551

Please sign in to comment.