From fe40f7d13bfc1faa35c9a131ce4be5104cb8f6b9 Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Mon, 28 Apr 2014 15:20:04 +0200 Subject: [PATCH] Flatten notification hiearchy and remove glow. Currently, the padding and the glow was inside the individual notification. This no longer works if we want to adjust the padding dynamically whether we are on Keyguard or not. This change moves the padding outside of the individual notifications, and as a side effect, removes the glow. The glow wasn't really visible with the new layout, so it's not a breaking change. We have to discuss with UX first what the new "glow" solution is going to be. Change-Id: Iac16892cb3b7bb1de3001954b1428796b07950c1 --- ...tus_bar_notification_keyguard_overflow.xml | 49 ++++++-------- .../layout/status_bar_notification_row.xml | 46 +++---------- packages/SystemUI/res/values/dimens.xml | 9 +-- .../com/android/systemui/ExpandHelper.java | 65 +------------------ ....java => ActivatableNotificationView.java} | 28 +++----- .../systemui/statusbar/BaseStatusBar.java | 14 ++-- .../statusbar/ExpandableNotificationRow.java | 62 +++++------------- .../statusbar/InterceptedNotifications.java | 2 +- .../systemui/statusbar/NotificationData.java | 1 - .../NotificationOverflowContainer.java | 41 +----------- .../statusbar/phone/PhoneStatusBar.java | 4 +- .../statusbar/phone/StatusBarWindowView.java | 4 +- .../policy/HeadsUpNotificationView.java | 4 +- .../stack/NotificationStackScrollLayout.java | 6 +- .../statusbar/stack/StackScrollAlgorithm.java | 13 ++-- .../statusbar/stack/StackScrollState.java | 43 +++++------- 16 files changed, 100 insertions(+), 291 deletions(-) rename packages/SystemUI/src/com/android/systemui/statusbar/{LatestItemView.java => ActivatableNotificationView.java} (86%) diff --git a/packages/SystemUI/res/layout/status_bar_notification_keyguard_overflow.xml b/packages/SystemUI/res/layout/status_bar_notification_keyguard_overflow.xml index 5d2f330951996..d81e525bf3de1 100644 --- a/packages/SystemUI/res/layout/status_bar_notification_keyguard_overflow.xml +++ b/packages/SystemUI/res/layout/status_bar_notification_keyguard_overflow.xml @@ -19,34 +19,27 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" + android:focusable="true" + android:clickable="true" + android:background="@*android:drawable/notification_quantum_bg_dim" > - - - - + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:gravity="center_horizontal" + android:textColor="@color/keyguard_overflow_content_color" + android:textAllCaps="true" + android:textAppearance="?android:attr/textAppearanceMedium" + /> + diff --git a/packages/SystemUI/res/layout/status_bar_notification_row.xml b/packages/SystemUI/res/layout/status_bar_notification_row.xml index d61d8b9cb8919..41e7dac84edd3 100644 --- a/packages/SystemUI/res/layout/status_bar_notification_row.xml +++ b/packages/SystemUI/res/layout/status_bar_notification_row.xml @@ -2,17 +2,18 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" + android:focusable="true" + android:clickable="true" + android:background="@*android:drawable/notification_quantum_bg" > - + + + android:layout_height="wrap_content" />