summaryrefslogtreecommitdiff
path: root/core/java/android/widget/DayPickerView.java
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2015-01-07 13:57:12 -0800
committerAlan Viverette <alanv@google.com>2015-01-07 13:57:12 -0800
commitc5b95c20b6fd3f4e63147efb22dd19c657b17001 (patch)
tree4ce18570ed30cbcd1dd4f69602b19c84b61db0bb /core/java/android/widget/DayPickerView.java
parent308ad16e52665a204cda888f6dc3313353fa7c68 (diff)
Fix date picker color handling, expose StateSet utils in more places
Enabled use of color selectors for the day number text, which lets us use the "activated" text color and push the selection background opacity up to 100%. Also ensures the selector circle stays within the bounds of the selected day. BUG: 18864682 Change-Id: Ia36ea748f83e13683a1de8ac1a259d353578d61a
Diffstat (limited to 'core/java/android/widget/DayPickerView.java')
-rw-r--r--core/java/android/widget/DayPickerView.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/widget/DayPickerView.java b/core/java/android/widget/DayPickerView.java
index 7db3fb9e113a..2ee36654d8b3 100644
--- a/core/java/android/widget/DayPickerView.java
+++ b/core/java/android/widget/DayPickerView.java
@@ -305,6 +305,10 @@ class DayPickerView extends ListView implements AbsListView.OnScrollListener {
mAdapter.setCalendarTextColor(colors);
}
+ void setCalendarDayBackgroundColor(ColorStateList dayBackgroundColor) {
+ mAdapter.setCalendarDayBackgroundColor(dayBackgroundColor);
+ }
+
void setCalendarTextAppearance(int resId) {
mAdapter.setCalendarTextAppearance(resId);
}