summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Kung <kingkung@google.com>2013-04-23 14:17:09 -0700
committerJames Kung <kingkung@google.com>2013-04-23 14:29:14 -0700
commit28c76ab6100d55b162c15fe21bc293cccec120db (patch)
tree358e4c705e8a0bc6cb3de1bfa5cc2f80cbcf42e6
parentfac0e4b3f5240de2b3e33189882244903e6a29fa (diff)
downloadandroid_frameworks_opt_datetimepicker-28c76ab6100d55b162c15fe21bc293cccec120db.tar.gz
android_frameworks_opt_datetimepicker-28c76ab6100d55b162c15fe21bc293cccec120db.tar.bz2
android_frameworks_opt_datetimepicker-28c76ab6100d55b162c15fe21bc293cccec120db.zip
Consistent done button picker color
Bug: 8696938 Change-Id: I32d8f6fad3519799fd402307e43ee634af649aa8
-rw-r--r--res/color/done_text_color.xml21
-rw-r--r--res/values/colors.xml3
2 files changed, 23 insertions, 1 deletions
diff --git a/res/color/done_text_color.xml b/res/color/done_text_color.xml
new file mode 100644
index 0000000..e6e55ed
--- /dev/null
+++ b/res/color/done_text_color.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:state_enabled="false" android:color="@color/done_text_color_disabled"/>
+ <item android:state_enabled="true" android:color="@color/done_text_color_normal"/>
+
+</selector> \ No newline at end of file
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 23afd47..ec1d495 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -20,7 +20,8 @@
<color name="circle_background">#f2f2f2</color>
<color name="line_background">#cccccc</color>
<color name="ampm_text_color">#8c8c8c</color>
- <color name="done_text_color">#8c8c8c</color>
+ <color name="done_text_color_normal">#333333</color>
+ <color name="done_text_color_disabled">#CCCCCC</color>
<color name="numbers_text_color">#8c8c8c</color>
<color name="transparent_black">#7F000000</color>