From ca7b7d0566a4d98701067cff915a78b63908e6f5 Mon Sep 17 00:00:00 2001 From: Chris Wren Date: Thu, 10 May 2012 15:01:37 -0400 Subject: [PATCH] Don't allow notificaitons to be larger than 4U, even with actions. Limit BigText template to a fixed number of lines. Optimize layout of BigText and Inbox for expansion. Bug: 6457470 Change-Id: Ib7389e16e566df9f91347ca3fdd621916a12af9b --- .../layout/notification_template_big_text.xml | 19 +++++++++++----- .../layout/notification_template_inbox.xml | 22 ++++++++++++++----- packages/SystemUI/res/values/dimens.xml | 5 ++--- 3 files changed, 32 insertions(+), 14 deletions(-) diff --git a/core/res/res/layout/notification_template_big_text.xml b/core/res/res/layout/notification_template_big_text.xml index d0549cf44db2c..77a5f11e293d1 100644 --- a/core/res/res/layout/notification_template_big_text.xml +++ b/core/res/res/layout/notification_template_big_text.xml @@ -43,14 +43,16 @@ + android:layout_weight="1" + > @@ -116,13 +123,14 @@ android:ellipsize="marquee" android:fadingEdge="horizontal" android:visibility="gone" - android:layout_weight="1" + android:layout_weight="0" /> diff --git a/core/res/res/layout/notification_template_inbox.xml b/core/res/res/layout/notification_template_inbox.xml index 7b63ac54f4f3d..05ec1d8f6a5b8 100644 --- a/core/res/res/layout/notification_template_inbox.xml +++ b/core/res/res/layout/notification_template_inbox.xml @@ -47,6 +47,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" + android:layout_weight="0" > @@ -152,13 +160,14 @@ android:ellipsize="marquee" android:fadingEdge="horizontal" android:visibility="gone" - android:layout_weight="1" + android:layout_weight="0" /> diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index 2ff0e00cf8fe2..21e5fd7529edb 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -58,9 +58,8 @@ 72dp - - - 320dp + + 256dp 18dip