keyguard_screen_password_portrait.xml revision 000464ac012471d301c6e48a8228291519915e17
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<GridLayout
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:orientation="vertical"
22    android:layout_width="match_parent"
23    android:layout_height="match_parent"
24    android:gravity="center_horizontal">
25
26    <com.android.internal.widget.DigitalClock android:id="@+id/time"
27        android:layout_marginBottom="18dip"
28        android:layout_marginEnd="@dimen/keyguard_lockscreen_status_line_font_right_margin"
29        android:layout_gravity="end">
30
31        <!-- Because we can't have multi-tone fonts, we render two TextViews, one on
32        top of the other. Hence the redundant layout... -->
33        <TextView android:id="@+id/timeDisplayBackground"
34            android:layout_width="wrap_content"
35            android:layout_height="wrap_content"
36            android:singleLine="true"
37            android:ellipsize="none"
38            android:textSize="@dimen/keyguard_lockscreen_clock_font_size"
39            android:textAppearance="?android:attr/textAppearanceMedium"
40            android:layout_marginBottom="6dip"
41            android:textColor="@*android:color/lockscreen_clock_background"
42            />
43
44        <TextView android:id="@+id/timeDisplayForeground"
45            android:layout_width="wrap_content"
46            android:layout_height="wrap_content"
47            android:singleLine="true"
48            android:ellipsize="none"
49            android:textSize="@dimen/keyguard_lockscreen_clock_font_size"
50            android:textAppearance="?android:attr/textAppearanceMedium"
51            android:layout_marginBottom="6dip"
52            android:textColor="@color/lockscreen_clock_foreground"
53            />
54
55    </com.android.internal.widget.DigitalClock>
56
57    <LinearLayout
58        android:orientation="horizontal"
59        android:layout_gravity="end"
60        android:layout_marginEnd="@dimen/keyguard_lockscreen_status_line_font_right_margin">
61
62        <TextView
63            android:id="@+id/date"
64            android:layout_width="wrap_content"
65            android:layout_height="wrap_content"
66            android:singleLine="true"
67            android:ellipsize="marquee"
68            android:textAppearance="?android:attr/textAppearanceMedium"
69            android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
70            />
71
72        <TextView
73            android:id="@+id/alarm_status"
74            android:layout_width="wrap_content"
75            android:layout_height="wrap_content"
76            android:layout_marginStart="16dip"
77            android:singleLine="true"
78            android:ellipsize="marquee"
79            android:textAppearance="?android:attr/textAppearanceMedium"
80            android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
81            android:drawablePadding="4dip"
82            />
83
84    </LinearLayout>
85
86    <TextView
87        android:id="@+id/status1"
88        android:layout_gravity="end"
89        android:layout_marginEnd="@dimen/keyguard_lockscreen_status_line_font_right_margin"
90        android:singleLine="true"
91        android:ellipsize="marquee"
92        android:textAppearance="?android:attr/textAppearanceMedium"
93        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
94        android:drawablePadding="4dip"
95        android:paddingBottom="4dip"
96        />
97
98    <!-- Password entry field -->
99    <!-- Note: the entire container is styled to look like the edit field,
100         since the backspace/IME switcher looks better inside -->
101    <LinearLayout
102        android:layout_gravity="center_vertical|fill_horizontal"
103        android:orientation="horizontal"
104        android:background="@drawable/lockscreen_password_field_dark"
105        android:layout_marginStart="16dip"
106        android:layout_marginEnd="16dip">
107
108        <EditText android:id="@+id/passwordEntry"
109            android:layout_width="0dip"
110            android:layout_height="wrap_content"
111            android:layout_weight="1"
112            android:gravity="center_horizontal"
113            android:layout_gravity="center_vertical"
114            android:layout_marginStart="@dimen/keyguard_lockscreen_pin_margin_left"
115            android:singleLine="true"
116            android:textStyle="normal"
117            android:inputType="textPassword"
118            android:textSize="36sp"
119            android:background="@null"
120            android:textAppearance="?android:attr/textAppearanceMedium"
121            android:textColor="#ffffffff"
122            android:imeOptions="flagForceAscii|actionDone"
123            />
124
125        <!-- This delete button is only visible for numeric PIN entry -->
126        <ImageButton android:id="@+id/pinDel"
127            android:layout_width="wrap_content"
128            android:layout_height="wrap_content"
129            android:src="@android:drawable/ic_input_delete"
130            android:clickable="true"
131            android:padding="8dip"
132            android:layout_gravity="center_vertical"
133            android:background="?android:attr/selectableItemBackground"
134            android:visibility="gone"
135            />
136
137        <ImageView android:id="@+id/switch_ime_button"
138            android:layout_width="wrap_content"
139            android:layout_height="wrap_content"
140            android:src="@drawable/ic_lockscreen_ime"
141            android:clickable="true"
142            android:padding="8dip"
143            android:layout_gravity="center"
144            android:background="?android:attr/selectableItemBackground"
145            android:visibility="gone"
146            />
147
148    </LinearLayout>
149
150    <!-- Numeric keyboard -->
151    <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
152        android:layout_width="match_parent"
153        android:layout_marginStart="4dip"
154        android:layout_marginEnd="4dip"
155        android:paddingTop="4dip"
156        android:paddingBottom="4dip"
157        android:background="#40000000"
158        android:keyBackground="@*android:drawable/btn_keyboard_key_ics"
159        android:visibility="gone"
160        android:clickable="true"
161    />
162
163    <TextView
164        android:id="@+id/carrier"
165        android:layout_width="wrap_content"
166        android:layout_height="wrap_content"
167        android:layout_gravity="center_horizontal"
168        android:textAppearance="?android:attr/textAppearanceMedium"
169        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
170        android:drawablePadding="4dip"
171        android:singleLine="true"
172        android:ellipsize="marquee"
173        android:paddingTop="4dip"
174        />
175
176    <Button
177        android:id="@+id/emergencyCallButton"
178        android:layout_width="wrap_content"
179        android:layout_height="wrap_content"
180        android:layout_marginTop="4dip"
181        android:layout_gravity="center_horizontal"
182        android:drawableLeft="@*android:drawable/lockscreen_emergency_button"
183        style="?android:attr/buttonBarButtonStyle"
184        android:drawablePadding="4dip"
185        android:text="@*android:string/lockscreen_emergency_call"
186        android:visibility="gone"
187        />
188
189    <!-- Music transport control -->
190    <include android:id="@+id/transport"
191        layout="@layout/keyguard_transport_control"
192        android:layout_row="0"
193        android:layout_column="0"
194        android:layout_rowSpan="3"
195        android:layout_columnSpan="1"
196        android:layout_gravity="fill"
197        android:layout_width="0dip"
198        android:layout_height="0dip"
199        />
200
201    <!-- Area to overlay FaceLock -->
202    <RelativeLayout
203        android:id="@+id/face_unlock_area_view"
204        android:visibility="invisible"
205        android:layout_row="3"
206        android:layout_column="0"
207        android:layout_rowSpan="2"
208        android:layout_columnSpan="1"
209        android:layout_gravity="fill"
210        android:layout_width="0dip"
211        android:layout_height="0dip"
212        android:background="@drawable/intro_bg">
213
214        <View
215            android:id="@+id/spotlightMask"
216            android:layout_width="match_parent"
217            android:layout_height="match_parent"
218            android:background="@color/facelock_spotlight_mask"
219        />
220
221        <ImageView
222            android:id="@+id/cancel_button"
223            android:layout_width="wrap_content"
224            android:layout_height="wrap_content"
225            android:padding="5dip"
226            android:layout_alignParentTop="true"
227            android:layout_alignParentEnd="true"
228            android:src="@drawable/ic_facial_backup"
229        />
230
231     </RelativeLayout>
232
233</GridLayout>
234