keyguard_pin_view.xml revision 19a5267003e7dc70100a4bd4f1f449523b2ff38b
1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3** 4** Copyright 2012, 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 20<com.android.internal.policy.impl.keyguard.KeyguardPINView 21 xmlns:android="http://schemas.android.com/apk/res/android" 22 xmlns:androidprv="http://schemas.android.com/apk/res/android" 23 android:id="@+id/keyguard_pin_view" 24 android:layout_width="350dp" 25 android:layout_height="350dp" 26 android:orientation="vertical" 27 > 28 <LinearLayout 29 android:layout_width="match_parent" 30 android:layout_height="0dp" 31 android:orientation="horizontal" 32 android:layout_weight="1" 33 > 34 <EditText android:id="@+id/passwordEntry" 35 android:layout_width="0dip" 36 android:layout_height="wrap_content" 37 android:layout_weight="1" 38 android:gravity="center_horizontal" 39 android:layout_gravity="center_vertical" 40 android:layout_marginStart="@*android:dimen/keyguard_lockscreen_pin_margin_left" 41 android:singleLine="true" 42 android:textStyle="normal" 43 android:inputType="textPassword" 44 android:cursorVisible="false" 45 android:textSize="36sp" 46 android:background="@null" 47 android:textAppearance="?android:attr/textAppearanceMedium" 48 android:textColor="#ffffffff" 49 android:imeOptions="flagForceAscii|actionDone" 50 /> 51 52 <ImageButton android:id="@+id/delete_button" 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:layout_gravity="center_vertical" 56 android:src="@*android:drawable/ic_input_delete" 57 android:clickable="true" 58 android:padding="8dip" 59 android:background="?android:attr/selectableItemBackground" 60 /> 61 </LinearLayout> 62 <LinearLayout 63 android:layout_width="match_parent" 64 android:layout_height="0dp" 65 android:layout_weight="1" 66 android:orientation="horizontal" 67 > 68 <view class="com.android.internal.policy.impl.keyguard.NumPadKey" 69 android:id="@+id/key1" 70 style="@style/PINButton" 71 android:layout_width="0px" 72 android:layout_height="match_parent" 73 android:layout_weight="1" 74 androidprv:textView="@+id/passwordEntry" 75 androidprv:digit="1" 76 /> 77 <view class="com.android.internal.policy.impl.keyguard.NumPadKey" 78 android:id="@+id/key2" 79 style="@style/PINButton" 80 android:layout_width="0px" 81 android:layout_height="match_parent" 82 android:layout_weight="1" 83 androidprv:textView="@+id/passwordEntry" 84 androidprv:digit="2" 85 /> 86 <view class="com.android.internal.policy.impl.keyguard.NumPadKey" 87 android:id="@+id/key3" 88 style="@style/PINButton" 89 android:layout_width="0px" 90 android:layout_height="match_parent" 91 android:layout_weight="1" 92 androidprv:textView="@+id/passwordEntry" 93 androidprv:digit="3" 94 /> 95 </LinearLayout> 96 <LinearLayout 97 android:layout_width="match_parent" 98 android:layout_height="0dp" 99 android:layout_weight="1" 100 android:orientation="horizontal" 101 > 102 <view class="com.android.internal.policy.impl.keyguard.NumPadKey" 103 android:id="@+id/key4" 104 style="@style/PINButton" 105 android:layout_width="0px" 106 android:layout_height="match_parent" 107 android:layout_weight="1" 108 androidprv:textView="@+id/passwordEntry" 109 androidprv:digit="4" 110 /> 111 <view class="com.android.internal.policy.impl.keyguard.NumPadKey" 112 android:id="@+id/key5" 113 style="@style/PINButton" 114 android:layout_width="0px" 115 android:layout_height="match_parent" 116 android:layout_weight="1" 117 androidprv:textView="@+id/passwordEntry" 118 androidprv:digit="5" 119 /> 120 <view class="com.android.internal.policy.impl.keyguard.NumPadKey" 121 android:id="@+id/key6" 122 style="@style/PINButton" 123 android:layout_width="0px" 124 android:layout_height="match_parent" 125 android:layout_weight="1" 126 androidprv:textView="@+id/passwordEntry" 127 androidprv:digit="6" 128 /> 129 </LinearLayout> 130 <LinearLayout 131 android:layout_width="match_parent" 132 android:layout_height="0dp" 133 android:orientation="horizontal" 134 android:layout_weight="1" 135 > 136 <view class="com.android.internal.policy.impl.keyguard.NumPadKey" 137 android:id="@+id/key7" 138 style="@style/PINButton" 139 android:layout_width="0px" 140 android:layout_height="match_parent" 141 android:layout_weight="1" 142 androidprv:textView="@+id/passwordEntry" 143 androidprv:digit="7" 144 /> 145 <view class="com.android.internal.policy.impl.keyguard.NumPadKey" 146 android:id="@+id/key8" 147 style="@style/PINButton" 148 android:layout_width="0px" 149 android:layout_height="match_parent" 150 android:layout_weight="1" 151 androidprv:textView="@+id/passwordEntry" 152 androidprv:digit="8" 153 /> 154 <view class="com.android.internal.policy.impl.keyguard.NumPadKey" 155 android:id="@+id/key9" 156 style="@style/PINButton" 157 android:layout_width="0px" 158 android:layout_height="match_parent" 159 android:layout_weight="1" 160 androidprv:textView="@+id/passwordEntry" 161 androidprv:digit="9" 162 /> 163 </LinearLayout> 164 <LinearLayout 165 android:layout_width="match_parent" 166 android:layout_height="0dp" 167 android:layout_weight="1" 168 android:orientation="horizontal" 169 > 170 <Space 171 android:layout_width="0px" 172 android:layout_height="match_parent" 173 android:layout_weight="1" 174 /> 175 <view class="com.android.internal.policy.impl.keyguard.NumPadKey" 176 android:id="@+id/key0" 177 style="@style/PINButton" 178 android:layout_width="0px" 179 android:layout_height="match_parent" 180 android:layout_weight="1" 181 androidprv:textView="@+id/passwordEntry" 182 androidprv:digit="0" 183 /> 184 <Button 185 android:id="@+id/keyOK" 186 style="@style/PINButton" 187 android:gravity="center" 188 android:layout_width="0px" 189 android:layout_height="match_parent" 190 android:layout_weight="1" 191 android:text="@android:string/ok" 192 /> 193 </LinearLayout> 194</com.android.internal.policy.impl.keyguard.KeyguardPINView> 195