Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-dev committed Oct 26, 2017
1 parent 549fbd8 commit 408d2d9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
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 408d2d9

Please sign in to comment.