blob: 631cc0d3df302ecbaea87a6b366cf26681727029 [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"
Lucas Dupin6a526082017-08-02 15:26:14 -070065 android:src="@drawable/ic_backspace_black_24dp"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070066 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"
Lucas Dupin6a526082017-08-02 15:26:14 -070076 android:tintMode="src_in"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070077 />
Jorim Jaggi15a77f72014-05-28 16:20:03 +020078 <View
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070079 android:id="@+id/divider"
80 android:layout_width="match_parent"
81 android:layout_height="1dp"
82 android:layout_alignParentBottom="true"
Lucas Dupin987f1932017-05-13 21:02:52 -070083 android:background="@drawable/pin_divider"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070084 />
Jorim Jaggie19b1ac2014-09-11 18:17:56 +020085 </com.android.keyguard.AlphaOptimizedRelativeLayout>
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070086 <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 />
Jorim Jaggie19b1ac2014-09-11 18:17:56 +0200202 <com.android.keyguard.AlphaOptimizedImageButton
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700203 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"
Lucas Dupin6a526082017-08-02 15:26:14 -0700208 android:src="@drawable/ic_done_black_24dp"
Lucas Dupin987f1932017-05-13 21:02:52 -0700209 style="@style/Keyguard.ImageButton.NumPadEnter"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700210 android:background="@drawable/ripple_drawable"
211 android:contentDescription="@string/keyboardview_keycode_enter"
212 />
213 </LinearLayout>
Daniel Sandler69bdee72012-10-23 16:45:50 -0400214 </LinearLayout>
Jim Miller9e0a2502012-11-07 21:23:32 -0800215 <include layout="@layout/keyguard_eca"
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700216 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"/>
Daniel Sandler51d39f22012-10-25 01:17:22 -0400222
Jim Miller5ecd8112013-01-09 18:50:26 -0800223</com.android.keyguard.KeyguardPINView>