Skip to content

Commit 9799714

Browse files
committed
Keyguard layout tweaking/reworking
Teach KeyguardSecurityViewFlipper about layout_maxWidth/Height. Give maxes to security views. Fix some IME layout weirdness in SlidingChallengeLayout by adding more weirdness. Change-Id: I8047d32302aad44844de06d54b150586b0861dab
1 parent 9edc48e commit 9799714

18 files changed

+207
-12
lines changed

core/res/res/layout-land/keyguard_host_view.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656

5757
<com.android.internal.policy.impl.keyguard.KeyguardSecurityContainer
5858
android:id="@+id/keyguard_security_container"
59-
android:layout_width="@dimen/keyguard_security_width"
60-
android:layout_height="@dimen/keyguard_security_height"
59+
android:layout_width="wrap_content"
60+
android:layout_height="wrap_content"
6161
androidprv:layout_childType="challenge"
6262
androidprv:layout_centerWithinArea="0.55">
6363
<com.android.internal.policy.impl.keyguard.KeyguardSecurityViewFlipper

core/res/res/layout-port/keyguard_host_view.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
<com.android.internal.policy.impl.keyguard.KeyguardSecurityContainer
6363
android:id="@+id/keyguard_security_container"
6464
android:layout_width="wrap_content"
65-
android:layout_height="@dimen/keyguard_security_height"
65+
android:layout_height="wrap_content"
66+
android:layout_maxHeight="@dimen/keyguard_security_height"
6667
androidprv:layout_childType="challenge"
6768
android:padding="0dp"
6869
android:gravity="bottom|center_horizontal">

core/res/res/layout-sw600dp-port/keyguard_host_view.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@
5858

5959
<com.android.internal.policy.impl.keyguard.KeyguardSecurityContainer
6060
android:id="@+id/keyguard_security_container"
61-
android:layout_width="match_parent"
62-
android:layout_height="match_parent"
63-
androidprv:layout_maxWidth="@dimen/keyguard_security_width"
64-
androidprv:layout_maxHeight="@dimen/keyguard_security_height"
61+
android:layout_width="wrap_content"
62+
android:layout_height="wrap_content"
6563
androidprv:layout_centerWithinArea="0.5"
6664
androidprv:layout_childType="challenge"
6765
android:layout_gravity="center_horizontal|bottom">

core/res/res/layout/keyguard_account_view.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
android:id="@+id/keyguard_account_view"
2222
android:layout_width="match_parent"
2323
android:layout_height="match_parent"
24+
android:layout_maxWidth="@dimen/keyguard_security_width"
25+
android:layout_maxHeight="@dimen/keyguard_security_height"
2426
android:orientation="vertical">
2527

2628
<include layout="@layout/keyguard_message_area"

core/res/res/layout/keyguard_face_unlock_view.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
android:orientation="vertical"
2525
android:layout_width="match_parent"
2626
android:layout_height="match_parent"
27+
android:layout_maxWidth="@dimen/keyguard_security_width"
28+
android:layout_maxHeight="@dimen/keyguard_security_height"
2729
android:contentDescription="@string/keyguard_accessibility_face_unlock">
2830

2931
<include layout="@layout/keyguard_message_area"

core/res/res/layout/keyguard_password_view.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
android:orientation="vertical"
2323
android:layout_width="match_parent"
2424
android:layout_height="match_parent"
25+
android:layout_maxWidth="@dimen/keyguard_security_width"
26+
android:layout_maxHeight="@dimen/keyguard_security_height"
2527
android:gravity="bottom"
2628
android:contentDescription="@string/keyguard_accessibility_password_unlock"
2729
>
@@ -84,6 +86,13 @@
8486

8587
</LinearLayout>
8688
</FrameLayout>
89+
90+
<Space
91+
android:layout_width="match_parent"
92+
android:layout_height="0dp"
93+
android:layout_weight="1"
94+
/>
95+
8796
<include layout="@layout/keyguard_emergency_carrier_area"
8897
android:id="@+id/keyguard_selector_fade_container"
8998
android:layout_width="match_parent"

core/res/res/layout/keyguard_pattern_view.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
android:orientation="vertical"
2727
android:layout_width="match_parent"
2828
android:layout_height="match_parent"
29+
android:layout_maxWidth="@dimen/keyguard_security_width"
30+
android:layout_maxHeight="@dimen/keyguard_security_height"
2931
android:gravity="center_horizontal"
3032
android:contentDescription="@string/keyguard_accessibility_pattern_unlock">
3133

core/res/res/layout/keyguard_pin_view.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
android:id="@+id/keyguard_pin_view"
2424
android:layout_width="match_parent"
2525
android:layout_height="match_parent"
26+
android:layout_maxWidth="@dimen/keyguard_security_width"
27+
android:layout_maxHeight="@dimen/keyguard_security_height"
2628
android:orientation="vertical"
2729
android:contentDescription="@string/keyguard_accessibility_pin_unlock"
2830
>

core/res/res/layout/keyguard_selector_view.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
android:id="@+id/keyguard_selector_view"
2525
android:layout_width="match_parent"
2626
android:layout_height="match_parent"
27+
android:layout_maxWidth="@dimen/keyguard_security_width"
28+
android:layout_maxHeight="@dimen/keyguard_security_height"
2729
android:clipChildren="false"
2830
android:clipToPadding="false"
2931
android:orientation="vertical"

core/res/res/layout/keyguard_sim_pin_view.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
android:orientation="vertical"
2525
android:layout_width="match_parent"
2626
android:layout_height="match_parent"
27+
android:layout_maxWidth="@dimen/keyguard_security_width"
28+
android:layout_maxHeight="@dimen/keyguard_security_height"
2729
android:gravity="center_horizontal">
2830

2931
<ImageView

0 commit comments

Comments
 (0)