From af1b980ef172a0af81a47a937a3a566153686f01 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Fri, 22 Jan 2010 19:09:50 -0800 Subject: [PATCH] Fix 2287263: Change carrier TextView to be 1 line and marquee if text is too long. This is intended as a workaround for the long text lines introduced in https://android-git.corp.google.com/g/#change,38100. --- .../keyguard_screen_sim_pin_portrait.xml | 18 ++++++++++++++---- .../res/layout/keyguard_screen_tab_unlock.xml | 6 ++++-- .../layout/keyguard_screen_tab_unlock_land.xml | 4 +++- .../keyguard_screen_unlock_landscape.xml | 2 ++ .../layout/keyguard_screen_unlock_portrait.xml | 5 ++++- 5 files changed, 27 insertions(+), 8 deletions(-) diff --git a/core/res/res/layout/keyguard_screen_sim_pin_portrait.xml b/core/res/res/layout/keyguard_screen_sim_pin_portrait.xml index 45e96a3b4624a..c9a9d5d3faed7 100644 --- a/core/res/res/layout/keyguard_screen_sim_pin_portrait.xml +++ b/core/res/res/layout/keyguard_screen_sim_pin_portrait.xml @@ -26,8 +26,7 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" - android:orientation="vertical" - > + android:orientation="vertical"> + /> + + + - + @@ -127,7 +129,7 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" - android:layout_marginBottom="80dip" + android:layout_marginBottom="80dip" /> 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..07839435ba020 100644 --- a/core/res/res/layout/keyguard_screen_tab_unlock_land.xml +++ b/core/res/res/layout/keyguard_screen_tab_unlock_land.xml @@ -27,7 +27,7 @@ android:orientation="horizontal" android:background="#70000000" android:id="@+id/root"> - + diff --git a/core/res/res/layout/keyguard_screen_unlock_landscape.xml b/core/res/res/layout/keyguard_screen_unlock_landscape.xml index 602a37ca9621c..a5da3d0c552c5 100644 --- a/core/res/res/layout/keyguard_screen_unlock_landscape.xml +++ b/core/res/res/layout/keyguard_screen_unlock_landscape.xml @@ -54,6 +54,8 @@ android:textSize="17sp" android:drawablePadding="4dip" android:layout_marginTop="32dip" + android:singleLine="true" + android:ellipsize="marquee" /> @@ -91,7 +94,7 @@ android:layout_marginLeft="24dip" android:textAppearance="?android:attr/textAppearanceMedium" /> - +