1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2012, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License")
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10**     http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17*/
18-->
19<!-- This is the SIM PIN view that allows the user to enter a SIM PIN to unlock the device. -->
20<com.android.keyguard.KeyguardSimPinView
21        xmlns:android="http://schemas.android.com/apk/res/android"
22        xmlns:androidprv="http://schemas.android.com/apk/res-auto"
23        android:id="@+id/keyguard_sim_pin_view"
24        android:orientation="vertical"
25        android:layout_width="match_parent"
26        android:layout_height="match_parent"
27        androidprv:layout_maxWidth="@dimen/keyguard_security_width"
28        android:gravity="center_horizontal">
29
30  <Space
31      android:layout_width="match_parent"
32      android:layout_height="0dp"
33      android:layout_weight="1"
34      />
35
36    <ImageView
37            android:id="@+id/keyguard_sim"
38            android:layout_width="match_parent"
39            android:layout_height="wrap_content"
40            android:tint="@color/background_protected"
41            android:src="@drawable/ic_lockscreen_sim"/>
42
43    <LinearLayout
44            android:layout_width="match_parent"
45            android:layout_height="wrap_content"
46            android:orientation="vertical"
47            android:gravity="center"
48            android:layoutDirection="ltr"
49            >
50        <include layout="@layout/keyguard_esim_area"
51             android:id="@+id/keyguard_esim_area"
52             android:layout_width="wrap_content"
53             android:layout_height="wrap_content"
54             android:layout_marginTop="@dimen/eca_overlap" />
55
56        <RelativeLayout
57                android:id="@+id/row0"
58                android:layout_width="match_parent"
59                android:layout_height="wrap_content"
60                android:paddingBottom="4dp"
61                >
62            <com.android.keyguard.PasswordTextView
63                    android:id="@+id/simPinEntry"
64                    android:layout_width="@dimen/keyguard_security_width"
65                    android:layout_height="@dimen/keyguard_password_height"
66                    android:gravity="center"
67                    android:layout_centerHorizontal="true"
68                    android:layout_marginRight="72dp"
69                    androidprv:scaledTextSize="@integer/scaled_password_text_size"
70                    android:contentDescription="@string/keyguard_accessibility_sim_pin_area"
71                    />
72        </RelativeLayout>
73        <LinearLayout
74                android:layout_width="wrap_content"
75                android:layout_height="wrap_content"
76                android:orientation="horizontal"
77                android:layout_gravity="center_horizontal"
78                android:layout_marginBottom="@dimen/num_pad_row_margin_bottom"
79                >
80            <com.android.keyguard.NumPadKey
81                    android:id="@+id/key1"
82                    android:layout_width="@dimen/num_pad_key_width"
83                    android:layout_height="match_parent"
84                    android:layout_marginEnd="@dimen/num_pad_key_margin_end"
85                    androidprv:textView="@+id/simPinEntry"
86                    androidprv:digit="1"
87                    />
88            <com.android.keyguard.NumPadKey
89                    android:id="@+id/key2"
90                    android:layout_width="@dimen/num_pad_key_width"
91                    android:layout_height="match_parent"
92                    android:layout_marginEnd="@dimen/num_pad_key_margin_end"
93                    androidprv:textView="@+id/simPinEntry"
94                    androidprv:digit="2"
95                    />
96            <com.android.keyguard.NumPadKey
97                    android:id="@+id/key3"
98                    android:layout_width="@dimen/num_pad_key_width"
99                    android:layout_height="match_parent"
100                    androidprv:textView="@+id/simPinEntry"
101                    androidprv:digit="3"
102                    />
103        </LinearLayout>
104        <LinearLayout
105                android:layout_width="wrap_content"
106                android:layout_height="wrap_content"
107                android:orientation="horizontal"
108                android:layout_gravity="center_horizontal"
109                android:layout_marginBottom="@dimen/num_pad_row_margin_bottom"
110                >
111            <com.android.keyguard.NumPadKey
112                    android:id="@+id/key4"
113                    android:layout_width="@dimen/num_pad_key_width"
114                    android:layout_height="match_parent"
115                    android:layout_marginEnd="@dimen/num_pad_key_margin_end"
116                    androidprv:textView="@+id/simPinEntry"
117                    androidprv:digit="4"
118                    />
119            <com.android.keyguard.NumPadKey
120                    android:id="@+id/key5"
121                    android:layout_width="@dimen/num_pad_key_width"
122                    android:layout_height="match_parent"
123                    android:layout_marginEnd="@dimen/num_pad_key_margin_end"
124                    androidprv:textView="@+id/simPinEntry"
125                    androidprv:digit="5"
126                    />
127            <com.android.keyguard.NumPadKey
128                    android:id="@+id/key6"
129                    android:layout_width="@dimen/num_pad_key_width"
130                    android:layout_height="match_parent"
131                    androidprv:textView="@+id/simPinEntry"
132                    androidprv:digit="6"
133                    />
134        </LinearLayout>
135        <LinearLayout
136                android:layout_width="wrap_content"
137                android:layout_height="wrap_content"
138                android:orientation="horizontal"
139                android:layout_gravity="center_horizontal"
140                android:layout_marginBottom="@dimen/num_pad_row_margin_bottom"
141                >
142            <com.android.keyguard.NumPadKey
143                    android:id="@+id/key7"
144                    android:layout_width="@dimen/num_pad_key_width"
145                    android:layout_height="match_parent"
146                    android:layout_marginEnd="@dimen/num_pad_key_margin_end"
147                    androidprv:textView="@+id/simPinEntry"
148                    androidprv:digit="7"
149                    />
150            <com.android.keyguard.NumPadKey
151                    android:id="@+id/key8"
152                    android:layout_width="@dimen/num_pad_key_width"
153                    android:layout_height="match_parent"
154                    android:layout_marginEnd="@dimen/num_pad_key_margin_end"
155                    androidprv:textView="@+id/simPinEntry"
156                    androidprv:digit="8"
157                    />
158            <com.android.keyguard.NumPadKey
159                    android:id="@+id/key9"
160                    android:layout_width="@dimen/num_pad_key_width"
161                    android:layout_height="match_parent"
162                    androidprv:textView="@+id/simPinEntry"
163                    androidprv:digit="9"
164                    />
165        </LinearLayout>
166        <LinearLayout
167                android:layout_width="wrap_content"
168                android:layout_height="wrap_content"
169                android:orientation="horizontal"
170                android:layout_gravity="center_horizontal"
171                >
172            <com.android.keyguard.NumPadButton
173                    android:id="@+id/delete_button"
174                    android:layout_width="@dimen/num_pad_key_width"
175                    android:layout_height="match_parent"
176                    android:layout_marginEnd="@dimen/num_pad_key_margin_end"
177                    android:contentDescription="@string/keyboardview_keycode_delete"
178                    style="@style/NumPadKey.Delete"
179                    />
180            <com.android.keyguard.NumPadKey
181                    android:id="@+id/key0"
182                    android:layout_width="@dimen/num_pad_key_width"
183                    android:layout_height="match_parent"
184                    android:layout_marginEnd="@dimen/num_pad_key_margin_end"
185                    androidprv:textView="@+id/simPinEntry"
186                    androidprv:digit="0"
187                    />
188            <com.android.keyguard.NumPadButton
189                    android:id="@+id/key_enter"
190                    android:layout_width="@dimen/num_pad_key_width"
191                    android:layout_height="match_parent"
192                    style="@style/NumPadKey.Enter"
193                    android:contentDescription="@string/keyboardview_keycode_enter"
194                    />
195        </LinearLayout>
196    </LinearLayout>
197
198    <include layout="@layout/keyguard_eca"
199             android:id="@+id/keyguard_selector_fade_container"
200             android:layout_width="match_parent"
201             android:layout_height="wrap_content"
202             android:orientation="vertical"
203             android:layout_gravity="bottom|center_horizontal"
204             android:layout_marginTop="@dimen/keyguard_eca_top_margin"
205             android:layout_marginBottom="2dp"
206             android:gravity="center_horizontal"/>
207
208</com.android.keyguard.KeyguardSimPinView>
209