diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -18,7 +18,7 @@ A typical SharedPreference contains items that look like so: ```Java class MyPrefs { - public static final String TEXT_COLOR = "text_color"; + public static final String TEXT_COLOR = "TEXT_COLOR"; private static SharedPreference prefs = ... @@ -27,7 +27,7 @@ class MyPrefs { } public static int getTextColor() { - prefs.getInt(TEXT_COLOR, 0xff000000); + prefs.getInt(TEXT_COLOR, Color.WHITE); } } ``` @@ -130,4 +130,4 @@ Ripple canvas provides a way to create simultaneous ripples against a background * `visible()`, `invisible()`, `gone()`, `isVisible()`, `isInvisible()`, `isGone()` methods * matchParent method to set the layout params to match_parent * Create snackbar directly -* Set IIcon into ImageView directly +* Set IIcon into ImageView directly
\ No newline at end of file |