From e90ab763d28653719e23ad5272515a849910fe90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manne=20=C3=96hlund?= Date: Wed, 28 Feb 2018 14:22:42 +0100 Subject: [PATCH] Update README.md [FIX] Change styleModel to themeModel --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 44af113..1ef1a18 100644 --- a/README.md +++ b/README.md @@ -37,14 +37,14 @@ Define themes in `.json` files and add it to `assets` folder ### Android Data Binding Let the DataBinding in Android do the stitching. -Set the data model variable in your layout and bind model attributes in xml code ex: `android:background="@{styleModel.toolbarColor}"`. +Set the data model variable in your layout and bind model attributes in xml code ex: `android:background="@{themeModel.toolbarColor}"`. ```xml @@ -53,12 +53,12 @@ Set the data model variable in your layout and bind model attributes in xml code android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:background="@{styleModel.toolbarColor}" /> + android:background="@{themeModel.toolbarColor}" /> ``` ### Setup Json Theme in Activity -If you use or extend `BaseThemeModel` `JsonThemer` will set a `DefaultThemeLayoutInflaterFactory` that will handle the style setting on all android.support components for `accentColor`. +If you use or extend `BaseThemeModel` `JsonThemer` will set a `DefaultThemeLayoutInflaterFactory` that will handle the theme/style setting on all android.support components for `accentColor`. ```kotlin @@ -71,7 +71,7 @@ override fun onCreate(savedInstanceState: Bundle?) { // Setup data binding and set the theme var binding: ActivityMainBinding = DataBindingUtil.setContentView(this, R.layout.activity_main) - binding.styleModel = theme + binding.themeModel = theme } ```