From 7377cd0ab4e4db23d6ef99c2c73e3e1d5c9312fa Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Fri, 24 Jun 2011 17:37:24 -0700 Subject: [PATCH] LockScreen layout, button style, and owner info fixes - enable OwnerInfo to appear in status1 if dedicated view not present. - force all status lines to be singleline and marquee. - fix justification in landscape layouts. - use buttonBarStyle for buttons on all LockScreens. - reduce the size of the clock to fit in landscape. - no longer show "Draw a pattern to unlock" help message in LockPatternView. Change-Id: I1ff51550e2180f9d912c8f710ad5e2fd2424d373 --- .../keyguard_screen_password_landscape.xml | 156 ++++++++++-------- .../keyguard_screen_password_portrait.xml | 4 +- .../layout/keyguard_screen_status_land.xml | 8 + .../layout/keyguard_screen_status_port.xml | 8 + .../res/layout/keyguard_screen_tab_unlock.xml | 17 +- .../keyguard_screen_tab_unlock_land.xml | 18 +- .../keyguard_screen_unlock_landscape.xml | 62 ++++--- .../keyguard_screen_unlock_portrait.xml | 33 ++-- core/res/res/values-land/dimens.xml | 2 +- .../policy/impl/PatternUnlockScreen.java | 3 +- .../internal/policy/impl/StatusView.java | 45 ++--- 11 files changed, 215 insertions(+), 141 deletions(-) diff --git a/core/res/res/layout/keyguard_screen_password_landscape.xml b/core/res/res/layout/keyguard_screen_password_landscape.xml index 937d5dcd47414..8ba08f68f17f8 100644 --- a/core/res/res/layout/keyguard_screen_password_landscape.xml +++ b/core/res/res/layout/keyguard_screen_password_landscape.xml @@ -24,7 +24,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:rowCount="10" + android:rowCount="11" android:id="@+id/root" android:clipChildren="false"> @@ -33,7 +33,8 @@ + android:layout_marginBottom="8dip" + android:layout_gravity="right"> @@ -67,120 +68,129 @@ android:id="@+id/date" android:layout_below="@id/time" android:layout_marginTop="6dip" + android:singleLine="true" + android:ellipsize="marquee" android:textAppearance="?android:attr/textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" - android:layout_gravity="left" + android:layout_gravity="right" /> - - - - - - - -