1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (C) 2014 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License") 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:gravity="center_horizontal" 22 android:orientation="vertical"> 23 24 <!-- header text ('Enter Pin') --> 25 <TextView android:id="@+id/headerText" 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:gravity="center" 29 android:lines="2" 30 android:textAppearance="?android:attr/textAppearanceMedium"/> 31 32 <!-- Password entry field --> 33 <EditText android:id="@+id/password_entry" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:layout_gravity="center" 37 android:layout_marginStart="30dip" 38 android:layout_marginEnd="30dip" 39 android:gravity="center" 40 android:inputType="textPassword" 41 android:imeOptions="actionNext|flagNoExtractUi" 42 android:textSize="24sp" 43 style="@style/TextAppearance.PasswordEntry"/> 44 45 <!-- Spacer between password entry and keyboard --> 46 <View 47 android:layout_width="match_parent" 48 android:layout_height="0dip" 49 android:layout_weight="1"/> 50 51 <LinearLayout 52 android:layout_width="match_parent" 53 android:layout_height="wrap_content" 54 android:orientation="horizontal" 55 android:visibility="gone" 56 style="@style/SecurityPreferenceButtonContainer"> 57 58 <!-- left : cancel --> 59 <Button android:id="@+id/cancel_button" 60 android:layout_width="0dip" 61 android:layout_height="wrap_content" 62 android:layout_weight="1" 63 android:text="@string/lockpassword_cancel_label" 64 style="@style/SecurityPreferenceButton"/> 65 66 <!-- right : continue --> 67 <Button android:id="@+id/next_button" 68 android:layout_width="0dip" 69 android:layout_height="wrap_content" 70 android:layout_weight="1" 71 android:text="@string/lockpassword_continue_label" 72 style="@style/SecurityPreferenceButton"/> 73 74 </LinearLayout> 75 76 <!-- Alphanumeric keyboard --> 77 <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard" 78 android:layout_width="match_parent" 79 android:layout_height="wrap_content" 80 android:background="#00000000" 81 android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans" 82 android:visibility="gone"/> 83 84 </LinearLayout> 85