summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Onorato <joeo@google.com>2010-11-27 21:26:38 -0800
committerJoe Onorato <joeo@google.com>2010-11-27 21:58:49 -0800
commit5a6b4f826515c65d816e711266f0eac5ae3d37df (patch)
tree76015760d70a6a662cf151467199c67c1a287ebe
parent5797f192eb598b30f8cf1e7a2107a6553eb399b8 (diff)
downloadframeworks_base-5a6b4f826515c65d816e711266f0eac5ae3d37df.zip
frameworks_base-5a6b4f826515c65d816e711266f0eac5ae3d37df.tar.gz
frameworks_base-5a6b4f826515c65d816e711266f0eac5ae3d37df.tar.bz2
tighten up the notifciation layouts
Change-Id: I8e4f6a6412123fdd2d76381d568ab0bc3157b974
-rw-r--r--core/res/res/layout-xlarge/status_bar_latest_event_content.xml1
-rw-r--r--core/res/res/layout-xlarge/status_bar_latest_event_content_large_icon.xml5
-rw-r--r--core/res/res/layout-xlarge/status_bar_latest_event_ticker.xml3
-rw-r--r--core/res/res/layout-xlarge/status_bar_latest_event_ticker_large_icon.xml7
-rw-r--r--core/res/res/values-xlarge/styles.xml6
-rw-r--r--packages/SystemUI/res/layout-xlarge/status_bar_notification_panel.xml5
-rw-r--r--packages/SystemUI/res/values-xlarge/styles.xml5
7 files changed, 24 insertions, 8 deletions
diff --git a/core/res/res/layout-xlarge/status_bar_latest_event_content.xml b/core/res/res/layout-xlarge/status_bar_latest_event_content.xml
index e4aa270..dca2c57 100644
--- a/core/res/res/layout-xlarge/status_bar_latest_event_content.xml
+++ b/core/res/res/layout-xlarge/status_bar_latest_event_content.xml
@@ -29,6 +29,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
+ android:layout_marginTop="-4dp"
android:singleLine="true"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
diff --git a/core/res/res/layout-xlarge/status_bar_latest_event_content_large_icon.xml b/core/res/res/layout-xlarge/status_bar_latest_event_content_large_icon.xml
index 1e1f9de..144fa0d 100644
--- a/core/res/res/layout-xlarge/status_bar_latest_event_content_large_icon.xml
+++ b/core/res/res/layout-xlarge/status_bar_latest_event_content_large_icon.xml
@@ -22,6 +22,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
+ android:layout_marginTop="-4dp"
android:singleLine="true"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
@@ -37,7 +38,9 @@
/>
<ImageView android:id="@+id/icon"
android:layout_width="48dp"
- android:layout_height="64dp"
+ android:layout_height="32dp"
+ android:layout_gravity="top"
+ android:layout_marginTop="8dp"
android:scaleType="center"
/>
</LinearLayout>
diff --git a/core/res/res/layout-xlarge/status_bar_latest_event_ticker.xml b/core/res/res/layout-xlarge/status_bar_latest_event_ticker.xml
index b09ed44..7631781 100644
--- a/core/res/res/layout-xlarge/status_bar_latest_event_ticker.xml
+++ b/core/res/res/layout-xlarge/status_bar_latest_event_ticker.xml
@@ -28,6 +28,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
+ android:layout_marginTop="-4dp"
android:singleLine="true"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
@@ -37,8 +38,8 @@
android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Info"
android:layout_width="wrap_content"
android:layout_height="match_parent"
+ android:layout_marginTop="-10dp"
android:singleLine="true"
- android:gravity="center_vertical"
/>
</LinearLayout>
diff --git a/core/res/res/layout-xlarge/status_bar_latest_event_ticker_large_icon.xml b/core/res/res/layout-xlarge/status_bar_latest_event_ticker_large_icon.xml
index 6c2e6f7..b382c55 100644
--- a/core/res/res/layout-xlarge/status_bar_latest_event_ticker_large_icon.xml
+++ b/core/res/res/layout-xlarge/status_bar_latest_event_ticker_large_icon.xml
@@ -23,6 +23,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
+ android:layout_marginTop="-4dp"
android:singleLine="true"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
@@ -33,11 +34,13 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:singleLine="true"
- android:gravity="center_vertical"
+ android:layout_marginTop="-10dp"
/>
<ImageView android:id="@+id/icon"
android:layout_width="48dp"
- android:layout_height="match_parent"
+ android:layout_height="32dp"
+ android:layout_gravity="top"
+ android:layout_marginTop="6dp"
android:scaleType="center"
/>
</LinearLayout>
diff --git a/core/res/res/values-xlarge/styles.xml b/core/res/res/values-xlarge/styles.xml
index 316861e..095a83d 100644
--- a/core/res/res/values-xlarge/styles.xml
+++ b/core/res/res/values-xlarge/styles.xml
@@ -29,10 +29,10 @@
<style name="TextAppearance.StatusBar.Icon">
</style>
<style name="TextAppearance.StatusBar.EventContent">
- <item name="android:textColor">?android:attr/textColorPrimary</item>
- <item name="android:textSize">16sp</item>
+ <item name="android:textColor">#ff999999</item>
</style>
<style name="TextAppearance.StatusBar.EventContent.Title">
- <item name="android:textStyle">bold</item>
+ <item name="android:textColor">?android:attr/textColorPrimary</item>
</style>
</resources>
+
diff --git a/packages/SystemUI/res/layout-xlarge/status_bar_notification_panel.xml b/packages/SystemUI/res/layout-xlarge/status_bar_notification_panel.xml
index a4fe909..c0612c8 100644
--- a/packages/SystemUI/res/layout-xlarge/status_bar_notification_panel.xml
+++ b/packages/SystemUI/res/layout-xlarge/status_bar_notification_panel.xml
@@ -62,6 +62,7 @@
<com.android.systemui.statusbar.policy.DateView
android:id="@+id/date"
+ style="@style/StatusBarNotificationText"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_below="@id/clock"
@@ -84,7 +85,8 @@
<TextView
android:id="@+id/battery_text"
- android:layout_width="48dp"
+ style="@style/StatusBarNotificationText"
+ android:layout_width="56dp"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/battery"
android:layout_alignBaseline="@id/battery"
@@ -104,6 +106,7 @@
<TextView
android:id="@+id/network_text"
+ style="@style/StatusBarNotificationText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/network"
diff --git a/packages/SystemUI/res/values-xlarge/styles.xml b/packages/SystemUI/res/values-xlarge/styles.xml
index 78c1988..fb10a24 100644
--- a/packages/SystemUI/res/values-xlarge/styles.xml
+++ b/packages/SystemUI/res/values-xlarge/styles.xml
@@ -16,6 +16,11 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android">
+ <style name="StatusBarNotificationText">
+ <item name="android:textSize">16sp</item>
+ <item name="android:textColor">#ff999999</item>
+ </style>
+
<style name="StatusBarPanelSettingsRow">
<item name="android:layout_height">64dp</item>
<item name="android:layout_width">match_parent</item>