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="match_parent" 110 android:layout_height="wrap_content" 111 android:gravity="center_horizontal" 112 android:layout_gravity="center_vertical" 113 android:singleLine="true" 114 android:textStyle="normal" 115 android:inputType="textPassword" 116 android:textSize="36sp" 117 android:background="@null" 118 android:textAppearance="?android:attr/textAppearanceMedium" 119 android:textColor="#ffffffff" 120 android:imeOptions="flagForceAscii|actionDone" 121 /> 122 123 <!-- This delete button is only visible for numeric PIN entry --> 124 <ImageButton android:id="@+id/pinDel" 125 android:layout_width="wrap_content" 126 android:layout_height="wrap_content" 127 android:src="@android:drawable/ic_input_delete" 128 android:clickable="true" 129 android:padding="8dip" 130 android:layout_gravity="center_vertical" 131 android:background="?android:attr/selectableItemBackground" 132 android:visibility="gone" 133 /> 134 135 <ImageView android:id="@+id/switch_ime_button" 136 android:layout_width="wrap_content" 137 android:layout_height="wrap_content" 138 android:src="@drawable/ic_lockscreen_ime" 139 android:clickable="true" 140 android:padding="8dip" 141 android:layout_gravity="center" 142 android:background="?android:attr/selectableItemBackground" 143 android:visibility="gone" 144 /> 145 146 </LinearLayout> 147 148 <!-- Numeric keyboard --> 149 <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard" 150 android:layout_width="match_parent" 151 android:layout_marginStart="4dip" 152 android:layout_marginEnd="4dip" 153 android:paddingTop="4dip" 154 android:paddingBottom="4dip" 155 android:background="#40000000" 156 android:keyBackground="@*android:drawable/btn_keyboard_key_ics" 157 android:visibility="gone" 158 android:clickable="true" 159 /> 160 161 <TextView 162 android:id="@+id/carrier" 163 android:layout_width="wrap_content" 164 android:layout_height="wrap_content" 165 android:layout_gravity="center_horizontal" 166 android:textAppearance="?android:attr/textAppearanceMedium" 167 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 168 android:drawablePadding="4dip" 169 android:singleLine="true" 170 android:ellipsize="marquee" 171 android:paddingTop="4dip" 172 /> 173 174 <Button 175 android:id="@+id/emergencyCallButton" 176 android:layout_width="wrap_content" 177 android:layout_height="wrap_content" 178 android:layout_marginTop="4dip" 179 android:layout_gravity="center_horizontal" 180 android:drawableLeft="@*android:drawable/lockscreen_emergency_button" 181 style="?android:attr/buttonBarButtonStyle" 182 android:drawablePadding="4dip" 183 android:text="@*android:string/lockscreen_emergency_call" 184 android:visibility="gone" 185 /> 186 187 <!-- Music transport control --> 188 <include android:id="@+id/transport" 189 layout="@layout/keyguard_transport_control" 190 android:layout_row="0" 191 android:layout_column="0" 192 android:layout_rowSpan="3" 193 android:layout_columnSpan="1" 194 android:layout_gravity="fill" 195 android:layout_width="0dip" 196 android:layout_height="0dip" 197 /> 198 199 <!-- Area to overlay FaceLock --> 200 <RelativeLayout 201 android:id="@+id/face_unlock_area_view" 202 android:visibility="invisible" 203 android:layout_row="3" 204 android:layout_column="0" 205 android:layout_rowSpan="2" 206 android:layout_columnSpan="1" 207 android:layout_gravity="fill" 208 android:layout_width="0dip" 209 android:layout_height="0dip" 210 android:background="@drawable/intro_bg"> 211 212 <View 213 android:id="@+id/spotlightMask" 214 android:layout_width="match_parent" 215 android:layout_height="match_parent" 216 android:background="@color/facelock_spotlight_mask" 217 /> 218 219 <ImageView 220 android:id="@+id/cancel_button" 221 android:layout_width="wrap_content" 222 android:layout_height="wrap_content" 223 android:padding="5dip" 224 android:layout_alignParentTop="true" 225 android:layout_alignParentEnd="true" 226 android:src="@drawable/ic_facial_backup" 227 /> 228 229 </RelativeLayout> 230 231</GridLayout> 232