keyguard_screen_password_portrait.xml revision 69aa4a953f040277c19c23208bb830f52796c8c6
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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="fill_parent" 21 android:layout_height="fill_parent" 22 android:orientation="vertical" 23 android:background="#70000000" 24 android:gravity="center_horizontal"> 25 26 <LinearLayout android:id="@+id/topDisplayGroup" 27 android:layout_width="fill_parent" 28 android:layout_height="wrap_content" 29 android:orientation="vertical"> 30 31 <RelativeLayout 32 android:layout_width="fill_parent" 33 android:layout_height="wrap_content"> 34 35 <com.android.internal.widget.DigitalClock android:id="@+id/time" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:layout_marginTop="6dip" 39 android:layout_marginLeft="6dip" 40 android:layout_alignParentTop="true" 41 android:layout_alignParentLeft="true"> 42 43 <TextView android:id="@+id/timeDisplay" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:gravity="bottom" 47 android:singleLine="true" 48 android:ellipsize="none" 49 android:textSize="56sp" 50 android:textAppearance="?android:attr/textAppearanceMedium" 51 android:shadowColor="#C0000000" 52 android:shadowDx="0" 53 android:shadowDy="0" 54 android:shadowRadius="3.0" 55 android:layout_marginBottom="6dip" 56 /> 57 58 <TextView android:id="@+id/am_pm" 59 android:layout_width="wrap_content" 60 android:layout_height="fill_parent" 61 android:gravity="bottom" 62 android:singleLine="true" 63 android:ellipsize="none" 64 android:textSize="18sp" 65 android:layout_marginLeft="4dip" 66 android:textAppearance="?android:attr/textAppearanceMedium" 67 android:shadowColor="#C0000000" 68 android:shadowDx="0" 69 android:shadowDy="0" 70 android:shadowRadius="3.0" 71 /> 72 73 </com.android.internal.widget.DigitalClock> 74 75 <TextView android:id="@+id/carrier" 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:layout_alignParentTop="true" 79 android:layout_marginTop="6dip" 80 android:layout_alignParentRight="true" 81 android:layout_marginRight="8dip" 82 android:textAppearance="?android:attr/textAppearanceMedium" 83 /> 84 85 </RelativeLayout> 86 87 <!-- password entry --> 88 <LinearLayout 89 android:layout_width="fill_parent" 90 android:layout_height="wrap_content" 91 android:orientation="horizontal" 92 android:layout_marginRight="6dip" 93 android:layout_marginLeft="6dip" 94 android:gravity="center_vertical" 95 android:hint="@android:string/keyguard_password_enter_password_code" 96 android:background="@android:drawable/edit_text"> 97 98 <!-- displays dots as user enters pin --> 99 <TextView android:id="@+id/pinDisplay" 100 android:layout_width="0dip" 101 android:layout_height="wrap_content" 102 android:layout_weight="1" 103 android:maxLines="1" 104 android:textAppearance="?android:attr/textAppearanceLargeInverse" 105 android:textStyle="bold" 106 android:inputType="textPassword" 107 /> 108 109 <ImageButton android:id="@+id/backspace" 110 android:src="@android:drawable/ic_input_delete" 111 android:layout_width="wrap_content" 112 android:layout_height="wrap_content" 113 android:layout_marginRight="-3dip" 114 android:layout_marginBottom="-3dip" 115 /> 116 </LinearLayout> 117 118 </LinearLayout> 119 120 <include 121 android:id="@+id/keyPad" 122 layout="@android:layout/twelve_key_entry" 123 android:layout_width="fill_parent" 124 android:layout_height="wrap_content" 125 android:layout_below="@id/topDisplayGroup" 126 android:layout_marginTop="10dip" 127 /> 128 129 <!-- spacer below keypad --> 130 <View 131 android:id="@+id/spacerBottom" 132 android:layout_width="fill_parent" 133 android:layout_height="1dip" 134 android:layout_marginTop="6dip" 135 android:layout_above="@id/emergencyCall" 136 android:background="@android:drawable/divider_horizontal_dark" 137 /> 138 139 <!-- The emergency button should take the rest of the space and be centered vertically --> 140 <LinearLayout 141 android:layout_width="fill_parent" 142 android:layout_height="0dip" 143 android:layout_weight="1" 144 android:gravity="center" 145 android:orientation="vertical"> 146 147 <!-- emergency call button --> 148 <Button 149 android:id="@+id/emergencyCall" 150 android:layout_width="wrap_content" 151 android:layout_height="wrap_content" 152 android:drawableLeft="@android:drawable/ic_emergency" 153 android:drawablePadding="8dip" 154 android:text="@android:string/lockscreen_emergency_call" 155 /> 156 </LinearLayout> 157 158</LinearLayout> 159