keyguard_screen_password_portrait.xml revision 79a02b15850347a2e932272b21b14c0c2b3faf50
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_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" 29 android:layout_gravity="right"> 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="right" 60 android:layout_marginRight="@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_marginLeft="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="right" 89 android:layout_marginRight="@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 /> 96 97 <!-- Password entry field --> 98 <EditText android:id="@+id/passwordEntry" 99 android:layout_height="wrap_content" 100 android:layout_width="match_parent" 101 android:layout_gravity="center_vertical|fill_horizontal" 102 android:gravity="center_horizontal" 103 android:singleLine="true" 104 android:textStyle="normal" 105 android:inputType="textPassword" 106 android:textSize="36sp" 107 android:layout_marginLeft="16dip" 108 android:layout_marginRight="16dip" 109 android:background="@drawable/lockscreen_password_field_dark" 110 android:textAppearance="?android:attr/textAppearanceMedium" 111 android:textColor="#ffffffff" 112 android:imeOptions="actionDone"/> 113 114 <!-- Numeric keyboard --> 115 <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard" 116 android:layout_width="match_parent" 117 android:layout_height="wrap_content" 118 android:layout_marginRight="4dip" 119 android:paddingTop="4dip" 120 android:paddingBottom="4dip" 121 android:background="#40000000" 122 android:keyBackground="@*android:drawable/btn_keyboard_key_ics" 123 android:visibility="gone" 124 /> 125 126 <TextView 127 android:id="@+id/carrier" 128 android:layout_width="wrap_content" 129 android:layout_height="wrap_content" 130 android:layout_gravity="center_horizontal" 131 android:textAppearance="?android:attr/textAppearanceMedium" 132 android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" 133 android:drawablePadding="4dip" 134 android:singleLine="true" 135 android:ellipsize="marquee" 136 /> 137 138 <Button 139 android:id="@+id/emergencyCallButton" 140 android:layout_width="wrap_content" 141 android:layout_height="wrap_content" 142 android:layout_marginTop="4dip" 143 android:layout_gravity="center_horizontal" 144 android:drawableLeft="@*android:drawable/lockscreen_emergency_button" 145 style="?android:attr/buttonBarButtonStyle" 146 android:drawablePadding="4dip" 147 android:text="@*android:string/lockscreen_emergency_call" 148 android:visibility="gone" 149 /> 150 151 <!-- Music transport control --> 152 <include android:id="@+id/transport" 153 layout="@layout/keyguard_transport_control" 154 android:layout_row="0" 155 android:layout_column="0" 156 android:layout_rowSpan="3" 157 android:layout_columnSpan="1" 158 android:layout_gravity="fill" 159 /> 160 161</GridLayout> 162