aboutsummaryrefslogtreecommitdiff
path: root/sample/src/main
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-11 19:10:05 -0700
committerAllan Wang <me@allanwang.ca>2017-06-11 19:10:05 -0700
commitaa747a2b154cebfdcdde93b68b674d776d964558 (patch)
tree749c39b002bdc4be080bad2032220b3cfe7cc68c /sample/src/main
parentced1a5b5acb763e914f62ad1ad338c9877e606e6 (diff)
downloadkau-aa747a2b154cebfdcdde93b68b674d776d964558.tar.gz
kau-aa747a2b154cebfdcdde93b68b674d776d964558.tar.bz2
kau-aa747a2b154cebfdcdde93b68b674d776d964558.zip
finalize Pref layout
Diffstat (limited to 'sample/src/main')
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt4
-rw-r--r--sample/src/main/res/values/strings.xml2
2 files changed, 4 insertions, 2 deletions
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
index 98285d8..ac80fc6 100644
--- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
+++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
@@ -9,6 +9,7 @@ import ca.allanwang.kau.utils.darken
import ca.allanwang.kau.utils.navigationBarColor
import ca.allanwang.kau.utils.showChangelog
import ca.allanwang.kau.views.RippleCanvas
+import com.mikepenz.google_material_typeface_library.GoogleMaterial
class MainActivity : KPrefActivity() {
@@ -39,7 +40,8 @@ class MainActivity : KPrefActivity() {
configs = {
allowCustom = false
})
- colorPicker(title = R.string.background_color, description = R.string.color_custom_alpha,
+ colorPicker(iicon = GoogleMaterial.Icon.gmd_colorize,
+ title = R.string.background_color, description = R.string.color_custom_alpha,
getter = { KPrefSample.bgColor }, setter = { KPrefSample.bgColor = it; bgCanvas.ripple(it, duration = 500L) },
configs = {
allowCustomAlpha = true
diff --git a/sample/src/main/res/values/strings.xml b/sample/src/main/res/values/strings.xml
index d76a9e6..56addfd 100644
--- a/sample/src/main/res/values/strings.xml
+++ b/sample/src/main/res/values/strings.xml
@@ -12,5 +12,5 @@
<string name="background_color">Background Color</string>
<string name="color_custom">This selector allows custom colors</string>
<string name="color_no_custom">This selector does not allow custom colors</string>
- <string name="color_custom_alpha">This selector allows for custom colors with alpha values kjljkjljk ljl lijl ijlijl</string>
+ <string name="color_custom_alpha">This selector allows for custom colors with alpha values</string>
</resources>