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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 20 android:orientation="vertical" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:background="@android:color/background_dark" 24 > 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:textAppearance="?android:attr/textAppearanceLarge"/> 38 39 <!-- Carrier info --> 40 <TextView android:id="@+id/carrier" 41 android:layout_width="fill_parent" 42 android:layout_height="wrap_content" 43 android:layout_marginTop="9dip" 44 android:gravity="center" 45 android:singleLine="true" 46 android:ellipsize="marquee" 47 android:textAppearance="?android:attr/textAppearanceMedium"/> 48 49 <LinearLayout 50 android:orientation="horizontal" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content"> 53 54 <LinearLayout 55 android:orientation="vertical" 56 android:layout_width="wrap_content" 57 android:layout_height="match_parent" 58 android:layout_marginEnd="10dip" 59 android:layout_marginStart="10dip"> 60 <TextView android:id="@+id/enter_puk" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:gravity="center_vertical" 64 android:text="@android:string/keyguard_password_enter_puk_prompt" 65 android:textSize="30sp" 66 android:layout_marginBottom="10dip"/> 67 <TextView android:id="@+id/enter_pin" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:gravity="center_vertical" 71 android:text="@android:string/keyguard_password_enter_pin_prompt" 72 android:textSize="30sp" 73 android:layout_marginTop="10dip"/> 74 </LinearLayout> 75 76 <LinearLayout 77 android:orientation="vertical" 78 android:layout_width="wrap_content" 79 android:layout_weight="1" 80 android:layout_height="match_parent" 81 android:paddingEnd="0dip" 82 android:layout_marginEnd="10dip" 83 android:layout_marginStart="10dip"> 84 85 <LinearLayout 86 android:layout_width="match_parent" 87 android:layout_height="wrap_content" 88 android:orientation="horizontal" 89 android:layout_marginEnd="6dip" 90 android:layout_marginStart="6dip" 91 android:gravity="center_vertical" 92 android:background="@android:drawable/edit_text"> 93 94 <!-- displays dots as user enters puk --> 95 <TextView android:id="@+id/pukDisplay" 96 android:layout_width="0dip" 97 android:layout_height="wrap_content" 98 android:layout_weight="1" 99 android:maxLines="1" 100 android:textAppearance="?android:attr/textAppearanceLargeInverse" 101 android:textStyle="bold" 102 android:inputType="textPassword" 103 /> 104 105 <ImageButton android:id="@+id/pukDel" 106 android:src="@android:drawable/ic_input_delete" 107 android:layout_width="wrap_content" 108 android:layout_height="wrap_content" 109 android:layout_marginEnd="-3dip" 110 android:layout_marginBottom="-3dip" 111 /> 112 </LinearLayout> 113 114 115 <LinearLayout 116 android:layout_width="match_parent" 117 android:layout_height="wrap_content" 118 android:orientation="horizontal" 119 android:layout_marginEnd="6dip" 120 android:layout_marginStart="6dip" 121 android:gravity="center_vertical" 122 android:background="@android:drawable/edit_text"> 123 124 <!-- displays dots as user enters new pin --> 125 <EditText android:id="@+id/pinDisplay" 126 android:layout_width="0dip" 127 android:layout_height="wrap_content" 128 android:layout_weight="1" 129 android:maxLines="1" 130 android:textAppearance="?android:attr/textAppearanceLargeInverse" 131 android:textColor="@android:color/primary_text_holo_light" 132 android:textStyle="bold" 133 android:inputType="textPassword" 134 android:hint="@android:string/keyguard_password_enter_pin_prompt" 135 /> 136 137 <ImageButton android:id="@+id/pinDel" 138 android:src="@android:drawable/ic_input_delete" 139 android:layout_width="wrap_content" 140 android:layout_height="wrap_content" 141 android:layout_marginEnd="-3dip" 142 android:layout_marginBottom="-3dip" 143 /> 144 </LinearLayout> 145 </LinearLayout> 146 </LinearLayout> 147 </LinearLayout> 148 149 <LinearLayout 150 android:orientation="horizontal" 151 android:layout_alignParentBottom="true" 152 android:layout_width="match_parent" 153 android:layout_height="wrap_content" 154 android:layout_marginBottom="8dip" 155 android:layout_marginStart="8dip" 156 android:layout_marginEnd="8dip"> 157 158 <Button android:id="@+id/emergencyCallButton" 159 android:text="@android:string/lockscreen_emergency_call" 160 android:layout_alignParentBottom="true" 161 android:layout_centerHorizontal="true" 162 android:layout_width="0dip" 163 android:layout_height="wrap_content" 164 android:layout_weight="1.0" 165 android:layout_marginBottom="8dip" 166 android:layout_marginEnd="8dip" 167 android:textSize="18sp" 168 android:drawableLeft="@drawable/ic_emergency" 169 android:drawablePadding="4dip" 170 /> 171 172 <Button android:id="@+id/ok" 173 android:text="@android:string/ok" 174 android:layout_alignParentBottom="true" 175 android:layout_width="0dip" 176 android:layout_height="wrap_content" 177 android:layout_weight="1.0" 178 android:layout_marginBottom="8dip" 179 android:layout_marginStart="8dip" 180 android:textSize="18sp" 181 /> 182 </LinearLayout> 183 184</RelativeLayout> 185