diff options
author | Andrew Sapperstein <asapperstein@google.com> | 2016-06-20 12:48:22 -0700 |
---|---|---|
committer | Andrew Sapperstein <asapperstein@google.com> | 2016-06-30 14:17:19 -0700 |
commit | 5f7750d75c83b13facf57988e1f042ce8af9abd6 (patch) | |
tree | b5ae3fe17a2ce8de81bf56ff33ffeb4d0af17573 /res/values/attrs.xml | |
parent | 26def23702881867208bfc465af27a4f9afc26f6 (diff) | |
download | android_packages_apps_Trebuchet-5f7750d75c83b13facf57988e1f042ce8af9abd6.tar.gz android_packages_apps_Trebuchet-5f7750d75c83b13facf57988e1f042ce8af9abd6.tar.bz2 android_packages_apps_Trebuchet-5f7750d75c83b13facf57988e1f042ce8af9abd6.zip |
Use colorSecondary for darker bg color.
Used for widget headers and a few other places.
In order to support pre-API 25, an app-local version of colorSecondary
is created and used throughout the app. A new WidgetContainerTheme
sets colorSecondary to a canned value. On API 25+, colorSecondary
is set to the platform value.
Change-Id: Ie0dd66333052b7346eea5d82d1c88417c6a2cd00
Fixes: 28625102
Diffstat (limited to 'res/values/attrs.xml')
-rw-r--r-- | res/values/attrs.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml index ca28ad35f..21a05c065 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -82,4 +82,7 @@ <declare-styleable name="ButtonDropTarget"> <attr name="hideParentOnDisable" format="boolean" /> </declare-styleable> + + <!-- Fallback attr for pre-API 25 support --> + <attr name="colorSecondary" format="reference|color" /> </resources> |