From 7322c050972ec4db8a41f06ebf27e9cf4059e14b Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Tue, 4 Apr 2017 15:12:52 -0700 Subject: [PATCH] AOD: Adjust header to spec - factor out attributes to themes - use themeing to change ambient header to larger text and icon size Bug: 30876804 Test: receive notification on ambient screen, observe that header text is slightly larger Change-Id: I70f79400e2ce47b862b3b501421aa71187866e61 --- .../layout/notification_template_header.xml | 19 ++++++++----------- ...notification_template_material_ambient.xml | 3 ++- core/res/res/values/attrs.xml | 7 +++++++ core/res/res/values/dimens.xml | 3 +++ core/res/res/values/styles_material.xml | 12 ++++++++++++ core/res/res/values/themes_material.xml | 13 +++++++++++++ 6 files changed, 45 insertions(+), 12 deletions(-) diff --git a/core/res/res/layout/notification_template_header.xml b/core/res/res/layout/notification_template_header.xml index a165621b96967..5a2bf4eb3f622 100644 --- a/core/res/res/layout/notification_template_header.xml +++ b/core/res/res/layout/notification_template_header.xml @@ -17,27 +17,24 @@ + style="?attr/notificationHeaderStyle"> - + + + + + + + + diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml index b82542af521fb..c5316c6133ccc 100644 --- a/core/res/res/values/dimens.xml +++ b/core/res/res/values/dimens.xml @@ -191,6 +191,9 @@ 18dp + + 20dp + 92dp diff --git a/core/res/res/values/styles_material.xml b/core/res/res/values/styles_material.xml index 8f061a3862a34..ec1661176ba63 100644 --- a/core/res/res/values/styles_material.xml +++ b/core/res/res/values/styles_material.xml @@ -488,6 +488,10 @@ please see styles_device_defaults.xml. + @@ -1283,4 +1287,12 @@ please see styles_device_defaults.xml. + diff --git a/core/res/res/values/themes_material.xml b/core/res/res/values/themes_material.xml index 008c817dd73c5..9dafa7a02849d 100644 --- a/core/res/res/values/themes_material.xml +++ b/core/res/res/values/themes_material.xml @@ -1321,6 +1321,19 @@ please see themes_device_defaults.xml. true + + + + + +