• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        androidprv:layout_maxHeight="@dimen/keyguard_security_max_height"
29        android:gravity="center_horizontal">
30
31    <ImageView
32            android:id="@+id/keyguard_sim"
33            android:layout_width="match_parent"
34            android:layout_height="wrap_content"
35            android:src="@drawable/ic_lockscreen_sim"/>
36
37    <include layout="@layout/keyguard_message_area"
38             android:layout_width="match_parent"
39             android:layout_height="wrap_content"
40            />
41    <LinearLayout
42            android:layout_width="match_parent"
43            android:layout_height="0dp"
44            android:orientation="vertical"
45            android:gravity="center"
46            android:layout_weight="1"
47            android:layoutDirection="ltr"
48            >
49        <include layout="@layout/keyguard_esim_area"
50             android:id="@+id/keyguard_esim_area"
51             android:layout_width="wrap_content"
52             android:layout_height="wrap_content"
53             android:layout_marginTop="@dimen/eca_overlap" />
54
55        <RelativeLayout
56                android:id="@+id/row0"
57                android:layout_width="match_parent"
58                android:layout_height="0dp"
59                android:layout_weight="1"
60                android:paddingBottom="16dp"
61                >
62            <com.android.keyguard.PasswordTextView
63                    android:id="@+id/simPinEntry"
64                    android:layout_width="@dimen/keyguard_security_width"
65                    android:layout_height="match_parent"
66                    android:gravity="center"
67                    android:layout_centerHorizontal="true"
68                    android:layout_marginRight="72dp"
69                    androidprv:scaledTextSize="@integer/scaled_password_text_size"
70                    android:textColor="?attr/wallpaperTextColor"
71                    android:contentDescription="@string/keyguard_accessibility_sim_pin_area"
72                    />
73            <ImageButton
74                    android:id="@+id/delete_button"
75                    android:layout_width="wrap_content"
76                    android:layout_height="match_parent"
77                    android:gravity="center_vertical"
78                    android:src="@drawable/ic_backspace_black_24dp"
79                    android:clickable="true"
80                    android:paddingTop="8dip"
81                    android:paddingBottom="8dip"
82                    android:paddingRight="0dp"
83                    android:paddingLeft="24dp"
84                    android:background="@drawable/ripple_drawable"
85                    android:contentDescription="@string/keyboardview_keycode_delete"
86                    android:layout_alignEnd="@+id/pinEntry"
87                    android:layout_alignParentRight="true"
88                    android:tint="@color/pin_delete_color"
89                    android:tintMode="src_in"
90                    />
91            <View
92                    android:id="@+id/divider"
93                    android:layout_width="match_parent"
94                    android:layout_height="1dp"
95                    android:layout_alignParentBottom="true"
96                    android:background="@drawable/pin_divider"
97                    />
98        </RelativeLayout>
99        <LinearLayout
100                android:layout_width="match_parent"
101                android:layout_height="0dp"
102                android:layout_weight="1"
103                android:orientation="horizontal"
104                >
105            <com.android.keyguard.NumPadKey
106                    android:id="@+id/key1"
107                    android:layout_width="0px"
108                    android:layout_height="match_parent"
109                    android:layout_weight="1"
110                    androidprv:textView="@+id/simPinEntry"
111                    androidprv:digit="1"
112                    />
113            <com.android.keyguard.NumPadKey
114                    android:id="@+id/key2"
115                    android:layout_width="0px"
116                    android:layout_height="match_parent"
117                    android:layout_weight="1"
118                    androidprv:textView="@+id/simPinEntry"
119                    androidprv:digit="2"
120                    />
121            <com.android.keyguard.NumPadKey
122                    android:id="@+id/key3"
123                    android:layout_width="0px"
124                    android:layout_height="match_parent"
125                    android:layout_weight="1"
126                    androidprv:textView="@+id/simPinEntry"
127                    androidprv:digit="3"
128                    />
129        </LinearLayout>
130        <LinearLayout
131                android:layout_width="match_parent"
132                android:layout_height="0dp"
133                android:layout_weight="1"
134                android:orientation="horizontal"
135                >
136            <com.android.keyguard.NumPadKey
137                    android:id="@+id/key4"
138                    android:layout_width="0px"
139                    android:layout_height="match_parent"
140                    android:layout_weight="1"
141                    androidprv:textView="@+id/simPinEntry"
142                    androidprv:digit="4"
143                    />
144            <com.android.keyguard.NumPadKey
145                    android:id="@+id/key5"
146                    android:layout_width="0px"
147                    android:layout_height="match_parent"
148                    android:layout_weight="1"
149                    androidprv:textView="@+id/simPinEntry"
150                    androidprv:digit="5"
151                    />
152            <com.android.keyguard.NumPadKey
153                    android:id="@+id/key6"
154                    android:layout_width="0px"
155                    android:layout_height="match_parent"
156                    android:layout_weight="1"
157                    androidprv:textView="@+id/simPinEntry"
158                    androidprv:digit="6"
159                    />
160        </LinearLayout>
161        <LinearLayout
162                android:layout_width="match_parent"
163                android:layout_height="0dp"
164                android:orientation="horizontal"
165                android:layout_weight="1"
166                >
167            <com.android.keyguard.NumPadKey
168                    android:id="@+id/key7"
169                    android:layout_width="0px"
170                    android:layout_height="match_parent"
171                    android:layout_weight="1"
172                    androidprv:textView="@+id/simPinEntry"
173                    androidprv:digit="7"
174                    />
175            <com.android.keyguard.NumPadKey
176                    android:id="@+id/key8"
177                    android:layout_width="0px"
178                    android:layout_height="match_parent"
179                    android:layout_weight="1"
180                    androidprv:textView="@+id/simPinEntry"
181                    androidprv:digit="8"
182                    />
183            <com.android.keyguard.NumPadKey
184                    android:id="@+id/key9"
185                    android:layout_width="0px"
186                    android:layout_height="match_parent"
187                    android:layout_weight="1"
188                    androidprv:textView="@+id/simPinEntry"
189                    androidprv:digit="9"
190                    />
191        </LinearLayout>
192        <LinearLayout
193                android:layout_width="match_parent"
194                android:layout_height="0dp"
195                android:layout_weight="1"
196                android:orientation="horizontal"
197                >
198            <Space
199                    android:layout_width="0px"
200                    android:layout_height="match_parent"
201                    android:layout_weight="1"
202                    />
203            <com.android.keyguard.NumPadKey
204                    android:id="@+id/key0"
205                    android:layout_width="0px"
206                    android:layout_height="match_parent"
207                    android:layout_weight="1"
208                    androidprv:textView="@+id/simPinEntry"
209                    androidprv:digit="0"
210                    />
211            <ImageButton
212                    android:id="@+id/key_enter"
213                    android:layout_width="0px"
214                    android:layout_height="match_parent"
215                    android:layout_weight="1"
216                    android:paddingBottom="11sp"
217                    android:src="@drawable/ic_done_black_24dp"
218                    style="@style/Keyguard.ImageButton.NumPadEnter"
219                    android:background="@drawable/ripple_drawable"
220                    android:contentDescription="@string/keyboardview_keycode_enter"
221                    />
222        </LinearLayout>
223    </LinearLayout>
224
225    <include layout="@layout/keyguard_eca"
226             android:id="@+id/keyguard_selector_fade_container"
227             android:layout_width="match_parent"
228             android:layout_height="wrap_content"
229             android:orientation="vertical"
230             android:layout_gravity="bottom|center_horizontal"
231             android:gravity="center_horizontal"/>
232
233</com.android.keyguard.KeyguardSimPinView>
234