blob: 3283e0411ec4d776d4576f956f3a9d627b794ebe [file] [log] [blame]
Daniel Sandler69bdee72012-10-23 16:45:50 -04001<?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
Jim Miller5ecd8112013-01-09 18:50:26 -080020<com.android.keyguard.KeyguardPINView
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070021 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"
Jim Miller0b728242012-10-28 19:42:30 -070024 android:layout_width="match_parent"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070025 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"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070029 >
30 <include layout="@layout/keyguard_message_area"
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 />
Daniel Sandler69bdee72012-10-23 16:45:50 -040034 <LinearLayout
Jorim Jaggi6b88cdf2014-12-22 20:56:50 +010035 android:id="@+id/container"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070036 android:layout_width="match_parent"
37 android:layout_height="0dp"
38 android:orientation="vertical"
39 android:layout_weight="1"
40 android:layoutDirection="ltr"
41 >
Jorim Jaggie19b1ac2014-09-11 18:17:56 +020042 <com.android.keyguard.AlphaOptimizedRelativeLayout
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070043 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"
Andrew Sappersteinfec80922017-06-13 18:36:28 -070056 androidprv:scaledTextSize="@integer/scaled_password_text_size"
Lucas Dupina360e1e72017-07-17 17:25:20 -070057 android:textColor="?attr/wallpaperTextColor"
Jinsong Mudc6efdc2014-12-03 18:13:15 -080058 android:contentDescription="@string/keyguard_accessibility_pin_area"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070059 />
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_24dp"
66 android:clickable="true"
67 android:paddingTop="8dip"
68 android:paddingBottom="8dip"
Lucas Dupin987f1932017-05-13 21:02:52 -070069 android:paddingRight="0dp"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070070 android:paddingLeft="24dp"
71 android:background="@drawable/ripple_drawable"
72 android:contentDescription="@string/keyboardview_keycode_delete"
73 android:layout_alignEnd="@+id/pinEntry"
74 android:layout_alignParentRight="true"
Lucas Dupin987f1932017-05-13 21:02:52 -070075 android:tint="@color/pin_delete_color"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070076 />
Jorim Jaggi15a77f72014-05-28 16:20:03 +020077 <View
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070078 android:id="@+id/divider"
79 android:layout_width="match_parent"
80 android:layout_height="1dp"
81 android:layout_alignParentBottom="true"
Lucas Dupin987f1932017-05-13 21:02:52 -070082 android:background="@drawable/pin_divider"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070083 />
Jorim Jaggie19b1ac2014-09-11 18:17:56 +020084 </com.android.keyguard.AlphaOptimizedRelativeLayout>
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070085 <LinearLayout
86 android:id="@+id/row1"
87 android:layout_width="match_parent"
88 android:layout_height="0dp"
89 android:layout_weight="1"
90 android:orientation="horizontal"
91 >
92 <com.android.keyguard.NumPadKey
93 android:id="@+id/key1"
94 android:layout_width="0px"
95 android:layout_height="match_parent"
96 android:layout_weight="1"
97 androidprv:textView="@+id/pinEntry"
98 androidprv:digit="1"
99 />
100 <com.android.keyguard.NumPadKey
101 android:id="@+id/key2"
102 android:layout_width="0px"
103 android:layout_height="match_parent"
104 android:layout_weight="1"
105 androidprv:textView="@+id/pinEntry"
106 androidprv:digit="2"
107 />
108 <com.android.keyguard.NumPadKey
109 android:id="@+id/key3"
110 android:layout_width="0px"
111 android:layout_height="match_parent"
112 android:layout_weight="1"
113 androidprv:textView="@+id/pinEntry"
114 androidprv:digit="3"
115 />
116 </LinearLayout>
117 <LinearLayout
118 android:id="@+id/row2"
119 android:layout_width="match_parent"
120 android:layout_height="0dp"
121 android:layout_weight="1"
122 android:orientation="horizontal"
123 >
124 <com.android.keyguard.NumPadKey
125 android:id="@+id/key4"
126 android:layout_width="0px"
127 android:layout_height="match_parent"
128 android:layout_weight="1"
129 androidprv:textView="@+id/pinEntry"
130 androidprv:digit="4"
131 />
132 <com.android.keyguard.NumPadKey
133 android:id="@+id/key5"
134 android:layout_width="0px"
135 android:layout_height="match_parent"
136 android:layout_weight="1"
137 androidprv:textView="@+id/pinEntry"
138 androidprv:digit="5"
139 />
140 <com.android.keyguard.NumPadKey
141 android:id="@+id/key6"
142 android:layout_width="0px"
143 android:layout_height="match_parent"
144 android:layout_weight="1"
145 androidprv:textView="@+id/pinEntry"
146 androidprv:digit="6"
147 />
148 </LinearLayout>
149 <LinearLayout
150 android:id="@+id/row3"
151 android:layout_width="match_parent"
152 android:layout_height="0dp"
153 android:orientation="horizontal"
154 android:layout_weight="1"
155 >
156 <com.android.keyguard.NumPadKey
157 android:id="@+id/key7"
158 android:layout_width="0px"
159 android:layout_height="match_parent"
160 android:layout_weight="1"
161 androidprv:textView="@+id/pinEntry"
162 androidprv:digit="7"
163 />
164 <com.android.keyguard.NumPadKey
165 android:id="@+id/key8"
166 android:layout_width="0px"
167 android:layout_height="match_parent"
168 android:layout_weight="1"
169 androidprv:textView="@+id/pinEntry"
170 androidprv:digit="8"
171 />
172 <com.android.keyguard.NumPadKey
173 android:id="@+id/key9"
174 android:layout_width="0px"
175 android:layout_height="match_parent"
176 android:layout_weight="1"
177 androidprv:textView="@+id/pinEntry"
178 androidprv:digit="9"
179 />
180 </LinearLayout>
181 <LinearLayout
182 android:id="@+id/row4"
183 android:layout_width="match_parent"
184 android:layout_height="0dp"
185 android:layout_weight="1"
186 android:orientation="horizontal"
187 >
188 <Space
189 android:layout_width="0px"
190 android:layout_height="match_parent"
191 android:layout_weight="1"
192 />
193 <com.android.keyguard.NumPadKey
194 android:id="@+id/key0"
195 android:layout_width="0px"
196 android:layout_height="match_parent"
197 android:layout_weight="1"
198 androidprv:textView="@+id/pinEntry"
199 androidprv:digit="0"
200 />
Jorim Jaggie19b1ac2014-09-11 18:17:56 +0200201 <com.android.keyguard.AlphaOptimizedImageButton
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700202 android:id="@+id/key_enter"
203 android:layout_width="0px"
204 android:layout_height="match_parent"
205 android:layout_weight="1"
206 android:paddingBottom="11sp"
207 android:src="@drawable/ic_done_wht"
Lucas Dupin987f1932017-05-13 21:02:52 -0700208 style="@style/Keyguard.ImageButton.NumPadEnter"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700209 android:background="@drawable/ripple_drawable"
210 android:contentDescription="@string/keyboardview_keycode_enter"
211 />
212 </LinearLayout>
Daniel Sandler69bdee72012-10-23 16:45:50 -0400213 </LinearLayout>
Jim Miller9e0a2502012-11-07 21:23:32 -0800214 <include layout="@layout/keyguard_eca"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700215 android:id="@+id/keyguard_selector_fade_container"
216 android:layout_width="match_parent"
217 android:layout_height="wrap_content"
218 android:orientation="vertical"
219 android:layout_gravity="bottom|center_horizontal"
220 android:gravity="center_horizontal"/>
Daniel Sandler51d39f22012-10-25 01:17:22 -0400221
Jim Miller5ecd8112013-01-09 18:50:26 -0800222</com.android.keyguard.KeyguardPINView>