summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res/layout/status_bar_notification_row.xml
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2014-04-28 15:20:04 +0200
committerJorim Jaggi <jjaggi@google.com>2014-04-28 20:59:26 +0200
commitfe40f7d13bfc1faa35c9a131ce4be5104cb8f6b9 (patch)
tree4e4b19a043323baae0b45dfbad7126064873b2f2 /packages/SystemUI/res/layout/status_bar_notification_row.xml
parentdf2258be5bd9df4f9a31c4389e8b07b996d26f0b (diff)
downloadframeworks_base-fe40f7d13bfc1faa35c9a131ce4be5104cb8f6b9.zip
frameworks_base-fe40f7d13bfc1faa35c9a131ce4be5104cb8f6b9.tar.gz
frameworks_base-fe40f7d13bfc1faa35c9a131ce4be5104cb8f6b9.tar.bz2
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
Diffstat (limited to 'packages/SystemUI/res/layout/status_bar_notification_row.xml')
-rw-r--r--packages/SystemUI/res/layout/status_bar_notification_row.xml46
1 files changed, 9 insertions, 37 deletions
diff --git a/packages/SystemUI/res/layout/status_bar_notification_row.xml b/packages/SystemUI/res/layout/status_bar_notification_row.xml
index d61d8b9..41e7dac 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"
>
- <View
- android:id="@+id/top_glow"
- android:alpha="0"
- android:visibility="invisible"
+ <com.android.internal.widget.SizeAdaptiveLayout android:id="@+id/expanded"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ <com.android.internal.widget.SizeAdaptiveLayout android:id="@+id/expandedPublic"
android:layout_width="match_parent"
- android:layout_height="@dimen/notification_divider_height"
- android:layout_gravity="top|center_horizontal"
- android:background="@drawable/top_divider_glow"
- />
+ android:layout_height="wrap_content" />
<Button
android:id="@+id/veto"
@@ -25,35 +26,6 @@
android:paddingStart="8dp"
/>
- <com.android.systemui.statusbar.LatestItemView android:id="@+id/container"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/notification_divider_height"
- android:layout_marginTop="@dimen/notification_divider_height"
- android:focusable="true"
- android:clickable="true"
- android:background="@*android:drawable/notification_quantum_bg"
- >
-
- <com.android.internal.widget.SizeAdaptiveLayout android:id="@+id/expanded"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
-
- <com.android.internal.widget.SizeAdaptiveLayout android:id="@+id/expandedPublic"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- </com.android.systemui.statusbar.LatestItemView>
-
- <View
- android:id="@+id/bottom_glow"
- android:alpha="0"
- android:visibility="invisible"
- android:layout_width="match_parent"
- android:layout_height="@dimen/notification_divider_height"
- android:layout_gravity="bottom|center_horizontal"
- android:background="@drawable/bottom_divider_glow"
- />
-
<TextView
android:id="@+id/debug_info"
android:visibility="invisible"