From 21eb4b87357de7f276eb3ff97c9e91e06568f7af Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Thu, 3 Dec 2009 11:46:03 -0500 Subject: [PATCH] Allow room for descenders in am/pm text. The lock screen clock layout was previously cropping them off; in locales that use "PM" this is fine, but Spanish (e.g.) uses "p.m." Fixes http://b/2277477 --- core/res/res/layout/keyguard_screen_tab_unlock.xml | 8 +++++--- core/res/res/layout/keyguard_screen_tab_unlock_land.xml | 8 +++++--- core/res/res/layout/keyguard_screen_unlock_landscape.xml | 8 +++++--- core/res/res/layout/keyguard_screen_unlock_portrait.xml | 8 +++++--- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/core/res/res/layout/keyguard_screen_tab_unlock.xml b/core/res/res/layout/keyguard_screen_tab_unlock.xml index f8944b5ca8685..a45faad060b9d 100644 --- a/core/res/res/layout/keyguard_screen_tab_unlock.xml +++ b/core/res/res/layout/keyguard_screen_tab_unlock.xml @@ -45,7 +45,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/carrier" - android:layout_marginBottom="10dip" android:layout_marginTop="52dip" android:layout_marginLeft="20dip" > @@ -53,6 +52,8 @@ @@ -67,10 +69,10 @@ android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="bottom" - android:textSize="22sp" android:singleLine="true" + android:ellipsize="none" + android:textSize="22sp" android:layout_marginLeft="8dip" - android:layout_marginBottom="-6dip" android:textAppearance="?android:attr/textAppearanceMedium" android:shadowColor="#C0000000" android:shadowDx="0" diff --git a/core/res/res/layout/keyguard_screen_tab_unlock_land.xml b/core/res/res/layout/keyguard_screen_tab_unlock_land.xml index 22c0b8e2066f8..1001697d44d2f 100644 --- a/core/res/res/layout/keyguard_screen_tab_unlock_land.xml +++ b/core/res/res/layout/keyguard_screen_tab_unlock_land.xml @@ -49,7 +49,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/carrier" - android:layout_marginBottom="8dip" android:layout_marginTop="56dip" > @@ -57,12 +56,15 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="bottom" + android:singleLine="true" + android:ellipsize="none" android:textSize="72sp" android:textAppearance="?android:attr/textAppearanceMedium" android:shadowColor="#C0000000" android:shadowDx="0" android:shadowDy="0" android:shadowRadius="3.0" + android:layout_marginBottom="6dip" /> @@ -70,10 +72,10 @@ android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="bottom" - android:textSize="22sp" android:singleLine="true" + android:ellipsize="none" + android:textSize="22sp" android:layout_marginLeft="8dip" - android:layout_marginBottom="-6dip" android:textAppearance="?android:attr/textAppearanceMedium" android:shadowColor="#C0000000" android:shadowDx="0" diff --git a/core/res/res/layout/keyguard_screen_unlock_landscape.xml b/core/res/res/layout/keyguard_screen_unlock_landscape.xml index 602a37ca9621c..f8f326af7833a 100644 --- a/core/res/res/layout/keyguard_screen_unlock_landscape.xml +++ b/core/res/res/layout/keyguard_screen_unlock_landscape.xml @@ -60,7 +60,6 @@ android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_alignParentLeft="true" - android:layout_marginBottom="8dip" android:layout_marginTop="8dip" > @@ -68,12 +67,15 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="bottom" + android:singleLine="true" + android:ellipsize="none" android:textSize="72sp" android:textAppearance="?android:attr/textAppearanceMedium" android:shadowColor="#C0000000" android:shadowDx="0" android:shadowDy="0" android:shadowRadius="3.0" + android:layout_marginBottom="6dip" /> @@ -81,10 +83,10 @@ android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="bottom" - android:textSize="22sp" android:singleLine="true" + android:ellipsize="none" + android:textSize="22sp" android:layout_marginLeft="8dip" - android:layout_marginBottom="-6dip" android:textAppearance="?android:attr/textAppearanceMedium" android:shadowColor="#C0000000" android:shadowDx="0" diff --git a/core/res/res/layout/keyguard_screen_unlock_portrait.xml b/core/res/res/layout/keyguard_screen_unlock_portrait.xml index 9ce5a250de952..d7c4aae96ca10 100644 --- a/core/res/res/layout/keyguard_screen_unlock_portrait.xml +++ b/core/res/res/layout/keyguard_screen_unlock_portrait.xml @@ -50,7 +50,6 @@ android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_marginTop="15dip" - android:layout_marginBottom="6dip" android:layout_marginLeft="20dip" > @@ -58,22 +57,25 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="bottom" + android:singleLine="true" + android:ellipsize="none" android:textSize="56sp" android:textAppearance="?android:attr/textAppearanceMedium" android:shadowColor="#C0000000" android:shadowDx="0" android:shadowDy="0" android:shadowRadius="3.0" + android:layout_marginBottom="6dip" />