keyguard_screen_sim_puk_portrait.xml revision 7f3eb49ad5dc7e4e4e9d354304ec1d43e9330b46
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="match_parent" 21 android:layout_height="match_parent" 22 android:orientation="vertical" 23 android:background="@android:color/background_dark" 24 android:gravity="center_horizontal"> 25 26 <LinearLayout android:id="@+id/topDisplayGroup" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:orientation="vertical"> 30 31 <!-- header text ('Enter Puk Code') --> 32 <TextView android:id="@+id/headerText" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:gravity="center" 36 android:singleLine="true" 37 android:ellipsize="marquee" 38 android:layout_marginRight="6dip" 39 android:layout_marginLeft="6dip" 40 android:textAppearance="?android:attr/textAppearanceLarge"/> 41 42 <!-- Carrier info --> 43 <TextView android:id="@+id/carrier" 44 android:layout_width="fill_parent" 45 android:layout_height="wrap_content" 46 android:layout_marginTop="9dip" 47 android:gravity="center" 48 android:singleLine="true" 49 android:ellipsize="marquee" 50 android:layout_marginRight="6dip" 51 android:layout_marginLeft="6dip" 52 android:textAppearance="?android:attr/textAppearanceMedium"/> 53 54 <LinearLayout 55 android:orientation="horizontal" 56 android:layout_width="match_parent" 57 android:layout_height="wrap_content"> 58 59 <LinearLayout 60 android:orientation="vertical" 61 android:layout_width="wrap_content" 62 android:layout_weight="1" 63 android:layout_height="match_parent" 64 android:paddingRight="0dip" 65 android:layout_marginRight="10dip" 66 android:layout_marginLeft="10dip"> 67 68 <LinearLayout 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:orientation="horizontal" 72 android:layout_marginRight="6dip" 73 android:layout_marginLeft="6dip" 74 android:gravity="center_vertical" 75 android:background="@android:drawable/edit_text"> 76 77 <!-- displays dots as user enters puk --> 78 <EditText android:id="@+id/pukDisplay" 79 android:layout_width="0dip" 80 android:layout_height="wrap_content" 81 android:layout_weight="1" 82 android:maxLines="1" 83 android:textStyle="bold" 84 android:inputType="textPassword" 85 android:textColor="#000" 86 android:hint="@android:string/keyguard_password_enter_puk_prompt" 87 /> 88 89 <ImageButton android:id="@+id/pukDel" 90 android:src="@android:drawable/ic_input_delete" 91 android:layout_width="wrap_content" 92 android:layout_height="wrap_content" 93 android:layout_marginRight="-3dip" 94 android:layout_marginBottom="-3dip" 95 /> 96 </LinearLayout> 97 98 99 <LinearLayout 100 android:layout_width="match_parent" 101 android:layout_height="wrap_content" 102 android:orientation="horizontal" 103 android:layout_marginRight="6dip" 104 android:layout_marginLeft="6dip" 105 android:gravity="center_vertical" 106 android:background="@android:drawable/edit_text"> 107 108 <!-- displays dots as user enters new pin --> 109 <EditText android:id="@+id/pinDisplay" 110 android:layout_width="0dip" 111 android:layout_height="wrap_content" 112 android:layout_weight="1" 113 android:maxLines="1" 114 android:textStyle="bold" 115 android:inputType="textPassword" 116 android:textColor="#000" 117 android:hint="@android:string/keyguard_password_enter_pin_prompt" 118 /> 119 120 <ImageButton android:id="@+id/pinDel" 121 android:src="@android:drawable/ic_input_delete" 122 android:layout_width="wrap_content" 123 android:layout_height="wrap_content" 124 android:layout_marginRight="-3dip" 125 android:layout_marginBottom="-3dip" 126 /> 127 </LinearLayout> 128 </LinearLayout> 129 </LinearLayout> 130 </LinearLayout> 131 132 <include 133 android:id="@+id/keyPad" 134 layout="@android:layout/twelve_key_entry" 135 android:layout_width="fill_parent" 136 android:layout_height="wrap_content" 137 android:layout_below="@id/topDisplayGroup" 138 android:layout_marginTop="10dip" 139 /> 140 141 <!-- spacer below keypad --> 142 <View 143 android:id="@+id/spacerBottom" 144 android:layout_width="match_parent" 145 android:layout_height="1dip" 146 android:layout_marginTop="6dip" 147 android:layout_above="@id/emergencyCallButton" 148 android:background="@android:drawable/divider_horizontal_dark" 149 /> 150 151 <!-- The emergency button should take the rest of the space and be centered vertically --> 152 <LinearLayout 153 android:layout_width="match_parent" 154 android:layout_height="0dip" 155 android:layout_weight="1" 156 android:gravity="center" 157 android:orientation="vertical"> 158 159 <!-- emergency call button --> 160 <Button 161 android:id="@+id/emergencyCallButton" 162 android:layout_width="wrap_content" 163 android:layout_height="wrap_content" 164 android:drawableLeft="@android:drawable/ic_emergency" 165 android:drawablePadding="4dip" 166 android:text="@android:string/lockscreen_emergency_call" 167 /> 168 </LinearLayout> 169 170</LinearLayout> 171