diff options
| author | Jim Miller <jaggies@google.com> | 2012-09-09 15:20:31 -0700 |
|---|---|---|
| committer | Jim Miller <jaggies@google.com> | 2012-09-10 15:55:54 -0700 |
| commit | 5737534abab477cf32b4dd0aa7a72f70ede0502c (patch) | |
| tree | 47b2f6a6f2e2a7aa4835f74c820d51b153d7bdc3 /core | |
| parent | add52a975aa78d9e24d3e63a8168c00a9bfb80ec (diff) | |
| download | frameworks_base-5737534abab477cf32b4dd0aa7a72f70ede0502c.zip frameworks_base-5737534abab477cf32b4dd0aa7a72f70ede0502c.tar.gz frameworks_base-5737534abab477cf32b4dd0aa7a72f70ede0502c.tar.bz2 | |
Allow pattern to start from outside pattern view
This effectively makes the pattern view slippery, which enables the
user to start their pattern outside the view and cross the view.
Fixes bug 7118762
Change-Id: I085c5ec8f7ccd2fc37a10606a8925078dc44be13
Diffstat (limited to 'core')
5 files changed, 36 insertions, 42 deletions
diff --git a/core/res/res/layout-land/keyguard_host_view.xml b/core/res/res/layout-land/keyguard_host_view.xml index 0028a54..8e7c232 100644 --- a/core/res/res/layout-land/keyguard_host_view.xml +++ b/core/res/res/layout-land/keyguard_host_view.xml @@ -38,7 +38,7 @@ </com.android.internal.policy.impl.keyguard.KeyguardWidgetPager> - <ViewFlipper + <com.android.internal.policy.impl.keyguard.KeyguardSecurityViewFlipper android:id="@+id/view_flipper" android:layout_width="0dip" android:layout_height="match_parent" @@ -48,6 +48,6 @@ <!-- SelectorView is always used, so add it here. The rest are loaded dynamically --> <include layout="@layout/keyguard_selector_view"/> - </ViewFlipper> + </com.android.internal.policy.impl.keyguard.KeyguardSecurityViewFlipper> </com.android.internal.policy.impl.keyguard.KeyguardHostView> diff --git a/core/res/res/layout-port/keyguard_host_view.xml b/core/res/res/layout-port/keyguard_host_view.xml index 5e467d1..55c4c0d 100644 --- a/core/res/res/layout-port/keyguard_host_view.xml +++ b/core/res/res/layout-port/keyguard_host_view.xml @@ -28,7 +28,7 @@ android:gravity="center_horizontal" android:clipChildren="false"> - <ViewFlipper + <com.android.internal.policy.impl.keyguard.KeyguardSecurityViewFlipper android:id="@+id/view_flipper" android:layout_height="match_parent" android:gravity="center"> @@ -36,7 +36,7 @@ <!-- SelectorView is always used, so add it here. The rest are loaded dynamically --> <include layout="@layout/keyguard_selector_view"/> - </ViewFlipper> + </com.android.internal.policy.impl.keyguard.KeyguardSecurityViewFlipper> </com.android.internal.policy.impl.keyguard.KeyguardHostView> diff --git a/core/res/res/layout-sw600dp-land/keyguard_host_view.xml b/core/res/res/layout-sw600dp-land/keyguard_host_view.xml index 5b6bb2f..652bdde 100644 --- a/core/res/res/layout-sw600dp-land/keyguard_host_view.xml +++ b/core/res/res/layout-sw600dp-land/keyguard_host_view.xml @@ -44,7 +44,7 @@ android:layout_weight="1" android:gravity="center"> - <ViewFlipper + <com.android.internal.policy.impl.keyguard.KeyguardSecurityViewFlipper android:id="@+id/view_flipper" android:layout_width="@dimen/kg_security_view_width" android:layout_height="match_parent" @@ -55,7 +55,7 @@ <!-- SelectorView is always used, so add it here. The rest are loaded dynamically --> <include layout="@layout/keyguard_selector_view"/> - </ViewFlipper> + </com.android.internal.policy.impl.keyguard.KeyguardSecurityViewFlipper> </FrameLayout> diff --git a/core/res/res/layout-sw600dp-port/keyguard_host_view.xml b/core/res/res/layout-sw600dp-port/keyguard_host_view.xml index 397b881..0c1dd0c 100644 --- a/core/res/res/layout-sw600dp-port/keyguard_host_view.xml +++ b/core/res/res/layout-sw600dp-port/keyguard_host_view.xml @@ -40,7 +40,7 @@ </com.android.internal.policy.impl.keyguard.KeyguardWidgetPager> - <ViewFlipper + <com.android.internal.policy.impl.keyguard.KeyguardSecurityViewFlipper android:id="@+id/view_flipper" android:layout_width="@dimen/kg_security_view_width" android:layout_height="0dip" @@ -50,7 +50,7 @@ <!-- SelectorView is always used, so add it here. The rest are loaded dynamically --> <include layout="@layout/keyguard_selector_view"/> - </ViewFlipper> + </com.android.internal.policy.impl.keyguard.KeyguardSecurityViewFlipper> </com.android.internal.policy.impl.keyguard.KeyguardHostView> diff --git a/core/res/res/layout/keyguard_pattern_view.xml b/core/res/res/layout/keyguard_pattern_view.xml index 954a92c..356bce3 100644 --- a/core/res/res/layout/keyguard_pattern_view.xml +++ b/core/res/res/layout/keyguard_pattern_view.xml @@ -23,42 +23,36 @@ <com.android.internal.policy.impl.keyguard.KeyguardPatternView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/keyguard_pattern_view" + android:orientation="vertical" android:layout_width="match_parent" - android:layout_height="match_parent"> - - <GridLayout - android:orientation="vertical" + android:layout_height="match_parent" + android:gravity="center_horizontal"> + + <include layout="@layout/keyguard_navigation"/> + + <Space android:layout_gravity="fill" /> + + <Button android:id="@+id/forgot_password_button" + android:layout_gravity="right" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@*android:dimen/keyguard_lockscreen_status_line_font_size" + android:drawableLeft="@*android:drawable/lockscreen_forgot_password_button" + android:drawablePadding="0dip" + android:visibility="gone"/> + + <!-- We need MATCH_PARENT here only to force the size of the parent to be passed to + the pattern view for it to compute its size. This is an unusual case, caused by + LockPatternView's requirement to maintain a square aspect ratio based on the width + of the screen. --> + <com.android.internal.widget.LockPatternView + android:id="@+id/lockPatternView" android:layout_width="match_parent" android:layout_height="match_parent" - android:gravity="center_horizontal"> - - <include layout="@layout/keyguard_navigation"/> - - <Space android:layout_gravity="fill" /> - - <Button android:id="@+id/forgot_password_button" - android:layout_gravity="right" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:textSize="@*android:dimen/keyguard_lockscreen_status_line_font_size" - android:drawableLeft="@*android:drawable/lockscreen_forgot_password_button" - android:drawablePadding="0dip" - android:visibility="gone"/> - - <!-- We need MATCH_PARENT here only to force the size of the parent to be passed to - the pattern view for it to compute its size. This is an unusual case, caused by - LockPatternView's requirement to maintain a square aspect ratio based on the width - of the screen. --> - <com.android.internal.widget.LockPatternView - android:id="@+id/lockPatternView" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_marginEnd="8dip" - android:layout_marginBottom="4dip" - android:layout_marginStart="8dip" - android:layout_gravity="center_horizontal" - /> - - </GridLayout> + android:layout_marginEnd="8dip" + android:layout_marginBottom="4dip" + android:layout_marginStart="8dip" + android:layout_gravity="center_horizontal" + /> </com.android.internal.policy.impl.keyguard.KeyguardPatternView> |
