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