From aa4f7e2a726baa84f066327fe4803c4c87f6f2ff Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Fri, 20 Jan 2017 10:36:00 -0500 Subject: [PATCH] Add secondaryContentAlpha Test: make and visual Change-Id: I8c6b57c9336699847f28f4a027674c9fbe797b44 --- api/current.txt | 1 + api/system-current.txt | 1 + api/test-current.txt | 1 + core/res/res/color/text_color_secondary.xml | 23 +++++++++++++++++++++ core/res/res/values/attrs.xml | 2 ++ core/res/res/values/colors_material.xml | 2 ++ core/res/res/values/public.xml | 1 + core/res/res/values/symbols.xml | 2 -- core/res/res/values/themes_material.xml | 10 +++++---- 9 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 core/res/res/color/text_color_secondary.xml diff --git a/api/current.txt b/api/current.txt index 829df43d95a45..cc71b6b463b06 100644 --- a/api/current.txt +++ b/api/current.txt @@ -1119,6 +1119,7 @@ package android { field public static final int searchSuggestSelection = 16843224; // 0x10101d8 field public static final int searchSuggestThreshold = 16843373; // 0x101026d field public static final int searchViewStyle = 16843904; // 0x1010480 + field public static final int secondaryContentAlpha = 16843688; // 0x10103a8 field public static final int secondaryProgress = 16843064; // 0x1010138 field public static final int secondaryProgressTint = 16843879; // 0x1010467 field public static final int secondaryProgressTintMode = 16843880; // 0x1010468 diff --git a/api/system-current.txt b/api/system-current.txt index 84efdf7fbd7cd..f4216d9db1f5b 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -1235,6 +1235,7 @@ package android { field public static final int searchSuggestSelection = 16843224; // 0x10101d8 field public static final int searchSuggestThreshold = 16843373; // 0x101026d field public static final int searchViewStyle = 16843904; // 0x1010480 + field public static final int secondaryContentAlpha = 16843688; // 0x10103a8 field public static final int secondaryProgress = 16843064; // 0x1010138 field public static final int secondaryProgressTint = 16843879; // 0x1010467 field public static final int secondaryProgressTintMode = 16843880; // 0x1010468 diff --git a/api/test-current.txt b/api/test-current.txt index 28b9af1c6ff0d..5ff5f8724ddd9 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -1119,6 +1119,7 @@ package android { field public static final int searchSuggestSelection = 16843224; // 0x10101d8 field public static final int searchSuggestThreshold = 16843373; // 0x101026d field public static final int searchViewStyle = 16843904; // 0x1010480 + field public static final int secondaryContentAlpha = 16843688; // 0x10103a8 field public static final int secondaryProgress = 16843064; // 0x1010138 field public static final int secondaryProgressTint = 16843879; // 0x1010467 field public static final int secondaryProgressTintMode = 16843880; // 0x1010468 diff --git a/core/res/res/color/text_color_secondary.xml b/core/res/res/color/text_color_secondary.xml new file mode 100644 index 0000000000000..60e0af80e04e3 --- /dev/null +++ b/core/res/res/color/text_color_secondary.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 11a96f739a8da..34f78f3947bb8 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -64,6 +64,8 @@ + + diff --git a/core/res/res/values/themes_material.xml b/core/res/res/values/themes_material.xml index 3587fecb7b5d2..b063baf386f4d 100644 --- a/core/res/res/values/themes_material.xml +++ b/core/res/res/values/themes_material.xml @@ -49,6 +49,7 @@ please see themes_device_defaults.xml. @color/background_cache_hint_selector_material_dark @dimen/disabled_alpha_material_dark @dimen/primary_content_alpha_material_dark + @dimen/secondary_content_alpha_material_dark 0.6 @@ -59,7 +60,7 @@ please see themes_device_defaults.xml. @color/primary_text_material_light @color/primary_text_inverse_when_activated_material @color/primary_text_disable_only_material_dark - @color/secondary_text_material_dark + @color/text_color_secondary @color/secondary_text_material_light @color/secondary_text_inverse_when_activated_material @color/secondary_text_material_dark @@ -415,6 +416,7 @@ please see themes_device_defaults.xml. @color/background_cache_hint_selector_material_light @dimen/disabled_alpha_material_light @dimen/primary_content_alpha_material_light + @dimen/secondary_content_alpha_material_light 0.6 @@ -424,7 +426,7 @@ please see themes_device_defaults.xml. @color/text_color_primary @color/primary_text_material_dark @color/primary_text_inverse_when_activated_material - @color/secondary_text_material_light + @color/text_color_secondary @color/secondary_text_material_dark @color/secondary_text_inverse_when_activated_material @color/secondary_text_material_light @@ -809,7 +811,7 @@ please see themes_device_defaults.xml. @color/text_color_primary @color/primary_text_material_dark - @color/secondary_text_material_light + @color/text_color_secondary @color/secondary_text_material_dark @color/secondary_text_material_light @color/secondary_text_material_dark @@ -844,7 +846,7 @@ please see themes_device_defaults.xml. @color/text_color_primary @color/primary_text_material_light @color/primary_text_disable_only_material_dark - @color/secondary_text_material_dark + @color/text_color_secondary @color/secondary_text_material_light @color/secondary_text_material_dark @color/secondary_text_material_light