From 205053615cc94a9bb9733284bc85b452e5f30215 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Tue, 12 Jan 2016 08:47:04 -0500 Subject: [PATCH] Mock compliance for notification guts. Change-Id: I6fc63ad5b9c241d5e003a9810fde6f5aea48214e --- .../res/drawable/ic_notification_alert.xml | 33 ++++++ .../res/drawable/ic_notification_block.xml | 25 ++++ .../SystemUI/res/layout/notification_guts.xml | 108 +++++++++--------- packages/SystemUI/res/values/colors.xml | 7 +- packages/SystemUI/res/values/styles.xml | 22 +++- 5 files changed, 138 insertions(+), 57 deletions(-) create mode 100644 core/res/res/drawable/ic_notification_alert.xml create mode 100644 core/res/res/drawable/ic_notification_block.xml diff --git a/core/res/res/drawable/ic_notification_alert.xml b/core/res/res/drawable/ic_notification_alert.xml new file mode 100644 index 0000000000000..d17dfc1ec8cf4 --- /dev/null +++ b/core/res/res/drawable/ic_notification_alert.xml @@ -0,0 +1,33 @@ + + + + + + + diff --git a/core/res/res/drawable/ic_notification_block.xml b/core/res/res/drawable/ic_notification_block.xml new file mode 100644 index 0000000000000..276907401d5a9 --- /dev/null +++ b/core/res/res/drawable/ic_notification_block.xml @@ -0,0 +1,25 @@ + + + + + diff --git a/packages/SystemUI/res/layout/notification_guts.xml b/packages/SystemUI/res/layout/notification_guts.xml index 071b7c8a6da8c..03451b43b5e2f 100644 --- a/packages/SystemUI/res/layout/notification_guts.xml +++ b/packages/SystemUI/res/layout/notification_guts.xml @@ -25,15 +25,15 @@ android:gravity="top|start" android:orientation="vertical" android:paddingStart="@*android:dimen/notification_content_margin_start" - android:paddingEnd="@*android:dimen/notification_content_margin_end" - android:background="@color/notification_guts_text_color" > + android:paddingEnd="8dp" + android:background="@color/notification_guts_bg_color" > @@ -42,25 +42,21 @@ android:id="@android:id/icon" android:layout_width="18dp" android:layout_height="18dp" - android:layout_marginEnd="3dp" + android:layout_marginEnd="6dp" android:src="@android:drawable/arrow_down_float" /> + android:id="@+id/pkgname" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + style="@style/TextAppearance.NotificationGuts.Header" /> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/debug_info" + android:layout_weight="0" + style="@style/TextAppearance.NotificationGuts.Header" + android:layout_gravity="bottom|start" + android:visibility="gone" /> + android:paddingBottom="8dip" + android:paddingEnd="8dp" > + android:fadingEdge="horizontal" + android:paddingBottom="2dp"/> + android:minLines="2" + android:paddingBottom="4dp" /> + android:progressBackgroundTint="@color/notification_guts_secondary_slider_color" + android:thumbTint="@color/notification_guts_slider_color" + android:progressTint="@color/notification_guts_slider_color" + style="@android:style/Widget.Material.SeekBar.Discrete" + android:tickMarkTint="@android:color/black" /> @@ -128,19 +128,22 @@ + android:layout_height="wrap_content" > + android:layout_height="48dp" + style="@style/TextAppearance.NotificationGuts.Primary" + android:visibility="gone" + android:buttonTint="#858383" + /> + style="@style/TextAppearance.NotificationGuts.Primary" + android:visibility="gone" + android:buttonTint="#858383" + /> @@ -148,29 +151,30 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="end" - android:paddingTop="8dp" - android:paddingBottom="16dp" > + android:paddingBottom="8dp" > diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml index 905da1388f4c4..e7d77e0109158 100644 --- a/packages/SystemUI/res/values/colors.xml +++ b/packages/SystemUI/res/values/colors.xml @@ -100,10 +100,9 @@ @color/system_accent_color - @*android:color/material_deep_teal_500 - #B2DFDB - #FFFFFFFF - #FFFFFFFF + @*android:color/material_grey_50 + @*android:color/material_deep_teal_500 + #858383 #ffffff diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 527b6380d2f31..4329f7830c4d3 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -319,10 +319,30 @@ + + + + + + + +