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