aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 9430a21..c8677c0 100644
--- a/README.md
+++ b/README.md
@@ -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