diff options
author | Daniel Sandler <dsandler@android.com> | 2011-10-14 13:14:46 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2011-10-14 13:14:46 -0400 |
commit | 57d74de48bfbbd67603a21ccab5b61b498ed2209 (patch) | |
tree | 7437f2ae78218a206b5036a8480b54076d49af17 /packages | |
parent | 645e0990552fc671ac3e5daa345ec11404962d28 (diff) | |
download | frameworks_base-57d74de48bfbbd67603a21ccab5b61b498ed2209.zip frameworks_base-57d74de48bfbbd67603a21ccab5b61b498ed2209.tar.gz frameworks_base-57d74de48bfbbd67603a21ccab5b61b498ed2209.tar.bz2 |
Adjust text sizes for better behavior under user scaling.
Text that is supposed to go in the status bar must be sized
in dp, because the bar doesn't get bigger when the user text
scale increases.
Bug: 5108533 // related
Change-Id: I36c3f750ec78562555d4bbe68d601d18250e36ec
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/res/layout/status_bar.xml | 7 | ||||
-rw-r--r-- | packages/SystemUI/res/layout/status_bar_expanded.xml | 2 | ||||
-rw-r--r-- | packages/SystemUI/res/values/styles.xml | 13 |
3 files changed, 17 insertions, 5 deletions
diff --git a/packages/SystemUI/res/layout/status_bar.xml b/packages/SystemUI/res/layout/status_bar.xml index c93378e..af2c93c 100644 --- a/packages/SystemUI/res/layout/status_bar.xml +++ b/packages/SystemUI/res/layout/status_bar.xml @@ -77,7 +77,6 @@ android:layout_height="match_parent" android:singleLine="true" android:paddingRight="6dip" - android:textSize="16sp" android:gravity="center_vertical|left" /> </LinearLayout> @@ -91,7 +90,7 @@ <ImageSwitcher android:id="@+id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" - android:layout_marginRight="2dip" + android:layout_marginRight="4dip" > <com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" @@ -111,13 +110,13 @@ android:paddingTop="2dip" android:paddingRight="10dip"> <TextView - android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker" + android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="match_parent" android:layout_height="wrap_content" android:singleLine="true" /> <TextView - android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker" + android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="match_parent" android:layout_height="wrap_content" android:singleLine="true" diff --git a/packages/SystemUI/res/layout/status_bar_expanded.xml b/packages/SystemUI/res/layout/status_bar_expanded.xml index 3e2def5..cd4e37c 100644 --- a/packages/SystemUI/res/layout/status_bar_expanded.xml +++ b/packages/SystemUI/res/layout/status_bar_expanded.xml @@ -35,7 +35,7 @@ android:background="@drawable/notification_header_bg" > <com.android.systemui.statusbar.policy.DateView android:id="@+id/date" - android:textAppearance="@style/TextAppearance.StatusBar.Clock" + android:textAppearance="@style/TextAppearance.StatusBar.Date" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentLeft="true" diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 3d49cd1..dc5c540 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -41,6 +41,13 @@ </style> <style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon"> + <!-- Note: must be dp to fit in status bar --> + <item name="android:textSize">16dp</item> + <item name="android:textStyle">normal</item> + <item name="android:textColor">@android:color/holo_blue_light</item> + </style> + + <style name="TextAppearance.StatusBar.Date" parent="@*android:style/TextAppearance.StatusBar.Icon"> <item name="android:textSize">16sp</item> <item name="android:textStyle">normal</item> <item name="android:textColor">@android:color/holo_blue_light</item> @@ -69,4 +76,10 @@ <item name="android:windowExitAnimation">@anim/priority_alert_exit</item> </style> + <style name="TextAppearance.StatusBar.PhoneTicker" + parent="@*android:style/TextAppearance.StatusBar.Ticker"> + <!-- Note: must be dp to fit in status bar --> + <item name="android:textSize">14dp</item> + </style> + </resources> |