|
23 | 23 | <com.android.internal.policy.impl.keyguard.KeyguardPatternView |
24 | 24 | xmlns:android="http://schemas.android.com/apk/res/android" |
25 | 25 | android:id="@+id/keyguard_pattern_view" |
| 26 | + android:orientation="vertical" |
26 | 27 | android:layout_width="match_parent" |
27 | | - android:layout_height="match_parent"> |
28 | | - |
29 | | - <GridLayout |
30 | | - android:orientation="vertical" |
| 28 | + android:layout_height="match_parent" |
| 29 | + android:gravity="center_horizontal"> |
| 30 | + |
| 31 | + <include layout="@layout/keyguard_navigation"/> |
| 32 | + |
| 33 | + <Space android:layout_gravity="fill" /> |
| 34 | + |
| 35 | + <Button android:id="@+id/forgot_password_button" |
| 36 | + android:layout_gravity="right" |
| 37 | + android:layout_width="wrap_content" |
| 38 | + android:layout_height="wrap_content" |
| 39 | + android:textSize="@*android:dimen/keyguard_lockscreen_status_line_font_size" |
| 40 | + android:drawableLeft="@*android:drawable/lockscreen_forgot_password_button" |
| 41 | + android:drawablePadding="0dip" |
| 42 | + android:visibility="gone"/> |
| 43 | + |
| 44 | + <!-- We need MATCH_PARENT here only to force the size of the parent to be passed to |
| 45 | + the pattern view for it to compute its size. This is an unusual case, caused by |
| 46 | + LockPatternView's requirement to maintain a square aspect ratio based on the width |
| 47 | + of the screen. --> |
| 48 | + <com.android.internal.widget.LockPatternView |
| 49 | + android:id="@+id/lockPatternView" |
31 | 50 | android:layout_width="match_parent" |
32 | 51 | android:layout_height="match_parent" |
33 | | - android:gravity="center_horizontal"> |
34 | | - |
35 | | - <include layout="@layout/keyguard_navigation"/> |
36 | | - |
37 | | - <Space android:layout_gravity="fill" /> |
38 | | - |
39 | | - <Button android:id="@+id/forgot_password_button" |
40 | | - android:layout_gravity="right" |
41 | | - android:layout_width="wrap_content" |
42 | | - android:layout_height="wrap_content" |
43 | | - android:textSize="@*android:dimen/keyguard_lockscreen_status_line_font_size" |
44 | | - android:drawableLeft="@*android:drawable/lockscreen_forgot_password_button" |
45 | | - android:drawablePadding="0dip" |
46 | | - android:visibility="gone"/> |
47 | | - |
48 | | - <!-- We need MATCH_PARENT here only to force the size of the parent to be passed to |
49 | | - the pattern view for it to compute its size. This is an unusual case, caused by |
50 | | - LockPatternView's requirement to maintain a square aspect ratio based on the width |
51 | | - of the screen. --> |
52 | | - <com.android.internal.widget.LockPatternView |
53 | | - android:id="@+id/lockPatternView" |
54 | | - android:layout_width="match_parent" |
55 | | - android:layout_height="match_parent" |
56 | | - android:layout_marginEnd="8dip" |
57 | | - android:layout_marginBottom="4dip" |
58 | | - android:layout_marginStart="8dip" |
59 | | - android:layout_gravity="center_horizontal" |
60 | | - /> |
61 | | - |
62 | | - </GridLayout> |
| 52 | + android:layout_marginEnd="8dip" |
| 53 | + android:layout_marginBottom="4dip" |
| 54 | + android:layout_marginStart="8dip" |
| 55 | + android:layout_gravity="center_horizontal" |
| 56 | + /> |
63 | 57 |
|
64 | 58 | </com.android.internal.policy.impl.keyguard.KeyguardPatternView> |
0 commit comments