From 3166978feb049eacd2e0af1c70f30cd287c1f798 Mon Sep 17 00:00:00 2001 From: Mykola D Date: Sat, 21 Oct 2017 23:59:54 +0300 Subject: [PATCH] Update README.md --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a28e125..41cee0a 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ with(viewModel) { } ``` -### Shared Preferences +### Shared Preferences binding It's so annoying to deal with SharedPreferences directly: ```java final String ageKey = "age"; @@ -124,7 +124,7 @@ prefs.isAdmin = true println("the name is ${prefs.userName}") ``` -### Bundle arguments tricks +### Bundle arguments binding Dealing with args bundle has never been such simple before. Let's declare another one activity: ```kotlin class SecondActivity : AppCompatActivity() { @@ -157,10 +157,13 @@ val args = bundle { } ``` -### Resources +### Resources binding Same rules can be used when using resources: ```kotlin private val appName: String by res(R.string.app_name) ... println(appName) - ``` \ No newline at end of file + ``` + +### Projects using this lib +- https://github.com/deviant-studio/energy-meter-scanner