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:gravity="center_horizontal"> 24 25 <!-- header text ('Enter Pin') --> 26 <TextView android:id="@+id/headerText" 27 android:layout_width="fill_parent" 28 android:layout_height="wrap_content" 29 android:gravity="center" 30 android:lines="2" 31 android:textAppearance="?android:attr/textAppearanceMedium"/> 32 33 <!-- spacer above text entry field --> 34 <View 35 android:id="@+id/spacerBottom" 36 android:layout_width="fill_parent" 37 android:layout_height="1dip" 38 android:background="@android:drawable/divider_horizontal_dark" 39 /> 40 41 <!-- Password entry field --> 42 <EditText android:id="@+id/password_entry" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:singleLine="true" 46 android:textStyle="bold" 47 android:inputType="textPassword" 48 android:imeOptions="actionNext" 49 android:gravity="center" 50 android:layout_gravity="center" 51 android:textSize="24sp" 52 android:layout_marginStart="30dip" 53 android:layout_marginEnd="30dip" 54 android:textAppearance="?android:attr/textAppearanceLarge" 55 android:background="@drawable/password_field_default" 56 android:textColor="#ffffffff" 57 /> 58 59 <!-- Spacer between password entry and keyboard --> 60 <View 61 android:layout_width="match_parent" 62 android:layout_height="0dip" 63 android:layout_weight="1" /> 64 65 <LinearLayout 66 style="@style/SecurityPreferenceButtonContainer" 67 android:orientation="horizontal"> 68 69 <!-- left : cancel --> 70 <Button android:id="@+id/cancel_button" 71 style="@style/SecurityPreferenceButton" 72 android:text="@string/lockpassword_cancel_label"/> 73 74 <!-- right : continue --> 75 <Button android:id="@+id/next_button" 76 style="@style/SecurityPreferenceButton" 77 android:text="@string/lockpassword_continue_label"/> 78 79 </LinearLayout> 80 81 <!-- Alphanumeric keyboard --> 82 <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard" 83 android:layout_alignParentBottom="true" 84 android:layout_width="match_parent" 85 android:layout_height="wrap_content" 86 android:background="#00000000" 87 android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans" 88 android:visibility="gone" 89 /> 90 91 </LinearLayout> 92