|
16 | 16 | ** limitations under the License. |
17 | 17 | */ |
18 | 18 | --> |
| 19 | +<!-- This is the SIM PUK view that allows the user to recover their device by entering the |
| 20 | + carrier-provided PUK code and entering a new SIM PIN for it. --> |
19 | 21 | <com.android.internal.policy.impl.keyguard.KeyguardSimPukView |
20 | 22 | xmlns:android="http://schemas.android.com/apk/res/android" |
21 | 23 | android:id="@+id/keyguard_sim_puk_view" |
|
24 | 26 | android:orientation="vertical" |
25 | 27 | android:gravity="center_horizontal"> |
26 | 28 |
|
27 | | - <include layout="@layout/keyguard_navigation"/> |
28 | | - |
29 | | - <Space |
30 | | - android:layout_width="match_parent" |
| 29 | + <LinearLayout |
31 | 30 | android:layout_height="0dip" |
32 | | - android:layout_weight="1"/> |
33 | | - |
34 | | - <LinearLayout android:id="@+id/topDisplayGroup" |
35 | 31 | android:layout_width="match_parent" |
36 | | - android:layout_height="wrap_content" |
37 | | - android:orientation="vertical"> |
38 | | - |
39 | | - <LinearLayout |
40 | | - android:orientation="horizontal" |
41 | | - android:layout_width="match_parent" |
42 | | - android:layout_height="wrap_content"> |
43 | | - |
44 | | - <LinearLayout |
45 | | - android:orientation="vertical" |
46 | | - android:layout_width="wrap_content" |
47 | | - android:layout_weight="1" |
48 | | - android:layout_height="match_parent" |
49 | | - android:paddingEnd="0dip" |
50 | | - android:layout_marginEnd="10dip" |
51 | | - android:layout_marginStart="10dip"> |
52 | | - |
53 | | - <LinearLayout |
54 | | - android:layout_width="match_parent" |
55 | | - android:layout_height="wrap_content" |
56 | | - android:orientation="horizontal" |
57 | | - android:layout_marginEnd="6dip" |
58 | | - android:layout_marginStart="6dip" |
59 | | - android:gravity="center_vertical" |
60 | | - android:background="@*android:drawable/edit_text"> |
61 | | - |
62 | | - <!-- displays dots as user enters puk --> |
63 | | - <EditText android:id="@+id/sim_puk_entry" |
64 | | - android:layout_width="0dip" |
65 | | - android:layout_height="wrap_content" |
66 | | - android:layout_weight="1" |
67 | | - android:maxLines="1" |
68 | | - android:textStyle="bold" |
69 | | - android:inputType="textPassword" |
70 | | - android:textColor="#000" |
71 | | - android:hint="@string/kg_puk_enter_puk_hint" |
72 | | - /> |
73 | | - |
74 | | - <ImageButton android:id="@+id/puk_delete_button" |
75 | | - android:src="@*android:drawable/ic_input_delete" |
76 | | - android:layout_width="wrap_content" |
77 | | - android:layout_height="wrap_content" |
78 | | - android:layout_marginEnd="-3dip" |
79 | | - android:layout_marginBottom="-3dip" |
80 | | - /> |
81 | | - |
82 | | - </LinearLayout> |
| 32 | + android:layout_weight="1" |
| 33 | + android:orientation="vertical" |
| 34 | + android:gravity="center"> |
83 | 35 |
|
| 36 | + <ImageView |
| 37 | + android:layout_width="wrap_content" |
| 38 | + android:layout_height="wrap_content" |
| 39 | + android:src="@drawable/ic_lockscreen_sim"/> |
84 | 40 |
|
85 | | - <LinearLayout |
86 | | - android:layout_width="match_parent" |
87 | | - android:layout_height="wrap_content" |
88 | | - android:orientation="horizontal" |
89 | | - android:layout_marginEnd="6dip" |
90 | | - android:layout_marginStart="6dip" |
91 | | - android:gravity="center_vertical" |
92 | | - android:background="@*android:drawable/edit_text"> |
| 41 | + <include layout="@layout/keyguard_navigation"/> |
93 | 42 |
|
94 | | - <!-- displays dots as user enters new pin --> |
95 | | - <EditText android:id="@+id/sim_pin_entry" |
96 | | - android:layout_width="0dip" |
97 | | - android:layout_height="wrap_content" |
98 | | - android:layout_weight="1" |
99 | | - android:maxLines="1" |
100 | | - android:textStyle="bold" |
101 | | - android:inputType="textPassword" |
102 | | - android:textColor="#000" |
103 | | - android:hint="@string/kg_puk_enter_pin_hint" |
104 | | - /> |
105 | | - |
106 | | - <ImageButton android:id="@+id/pin_delete_button" |
107 | | - android:src="@*android:drawable/ic_input_delete" |
108 | | - android:layout_width="wrap_content" |
109 | | - android:layout_height="wrap_content" |
110 | | - android:layout_marginEnd="-3dip" |
111 | | - android:layout_marginBottom="-3dip" |
112 | | - /> |
113 | | - </LinearLayout> |
114 | | - |
115 | | - </LinearLayout> |
116 | | - |
117 | | - </LinearLayout> |
| 43 | + </LinearLayout> |
118 | 44 |
|
| 45 | + <!-- Password entry field --> |
| 46 | + <!-- Note: the entire container is styled to look like the edit field, |
| 47 | + since the backspace/IME switcher looks better inside --> |
| 48 | + <LinearLayout |
| 49 | + android:layout_width="match_parent" |
| 50 | + android:layout_height="wrap_content" |
| 51 | + android:orientation="horizontal" |
| 52 | + android:layout_marginEnd="4dip" |
| 53 | + android:layout_marginStart="4dip" |
| 54 | + android:gravity="center_vertical" |
| 55 | + android:background="#70000000"> |
| 56 | + |
| 57 | + <!-- displays dots as user enters pin --> |
| 58 | + <EditText android:id="@+id/sim_pin_entry" |
| 59 | + android:layout_width="0dip" |
| 60 | + android:layout_height="wrap_content" |
| 61 | + android:layout_weight="1" |
| 62 | + android:maxLines="1" |
| 63 | + android:singleLine="true" |
| 64 | + android:gravity="center_horizontal" |
| 65 | + android:layout_gravity="center_vertical" |
| 66 | + android:layout_marginStart="@*android:dimen/keyguard_lockscreen_pin_margin_left" |
| 67 | + android:textStyle="normal" |
| 68 | + android:inputType="textPassword" |
| 69 | + android:textSize="36sp" |
| 70 | + android:background="@null" |
| 71 | + android:textAppearance="?android:attr/textAppearanceMedium" |
| 72 | + android:textColor="#ffffffff" |
| 73 | + android:imeOptions="flagForceAscii|actionDone" |
| 74 | + /> |
| 75 | + |
| 76 | + <ImageButton android:id="@+id/delete_button" |
| 77 | + android:layout_width="wrap_content" |
| 78 | + android:layout_height="wrap_content" |
| 79 | + android:layout_gravity="center_vertical" |
| 80 | + android:src="@android:drawable/ic_input_delete" |
| 81 | + android:clickable="true" |
| 82 | + android:padding="8dip" |
| 83 | + android:background="?android:attr/selectableItemBackground" |
| 84 | + /> |
119 | 85 | </LinearLayout> |
120 | 86 |
|
121 | 87 | <!-- Numeric keyboard --> |
|
125 | 91 | android:layout_marginEnd="4dip" |
126 | 92 | android:paddingTop="4dip" |
127 | 93 | android:paddingBottom="4dip" |
128 | | - android:background="#80ffffff" |
| 94 | + android:background="#40000000" |
129 | 95 | android:keyBackground="@*android:drawable/btn_keyboard_key_ics" |
130 | 96 | android:clickable="true" |
131 | 97 | /> |
132 | 98 |
|
| 99 | + <Space |
| 100 | + android:layout_width="match_parent" |
| 101 | + android:layout_height="@dimen/kg_secure_padding_height" |
| 102 | + android:background="@drawable/lockscreen_protection_pattern" /> |
| 103 | + |
133 | 104 | </com.android.internal.policy.impl.keyguard.KeyguardSimPukView> |
0 commit comments