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 <!-- This is basically the same layout as choose_lock_password. --> 20 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="fill_parent" 22 android:layout_height="fill_parent" 23 android:orientation="vertical" 24 android:background="@android:color/background_dark" 25 android:gravity="center_horizontal"> 26 27 <LinearLayout 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:orientation="horizontal"> 31 <!-- "Enter PIN(Password) to unlock" --> 32 <TextView android:id="@+id/headerText" 33 android:layout_width="0dip" 34 android:layout_height="wrap_content" 35 android:layout_weight="1" 36 android:orientation="horizontal" 37 android:layout_marginEnd="6dip" 38 android:layout_marginStart="6dip" 39 android:layout_marginTop="10dip" 40 android:layout_marginBottom="10dip" 41 android:gravity="start" 42 android:ellipsize="marquee" 43 android:textAppearance="?android:attr/textAppearanceMedium" 44 /> 45 46 <!-- Password entry field --> 47 <EditText android:id="@+id/password_entry" 48 android:layout_width="0dip" 49 android:layout_height="wrap_content" 50 android:layout_weight="1" 51 android:singleLine="true" 52 android:textStyle="bold" 53 android:inputType="textPassword" 54 android:imeOptions="actionNext" 55 android:gravity="center" 56 android:layout_gravity="center" 57 android:textSize="24sp" 58 android:layout_marginTop="5dip" 59 android:layout_marginBottom="5dip" 60 android:textAppearance="?android:attr/textAppearanceLarge" 61 android:background="@drawable/password_field_default" 62 android:textColor="#ffffffff" 63 /> 64 </LinearLayout> 65 66 <!-- Spacer between password entry and keyboard --> 67 <View 68 android:layout_width="match_parent" 69 android:layout_height="0dip" 70 android:layout_weight="1" /> 71 72 <!-- Alphanumeric keyboard --> 73 <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard" 74 android:layout_alignParentBottom="true" 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 android:background="#00000000" 78 android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans" 79 android:visibility="gone" 80 /> 81 82 <RelativeLayout 83 android:layout_height="wrap_content" 84 android:layout_width="match_parent" 85 android:background="@android:drawable/bottom_bar" 86 android:visibility="gone"> 87 88 <Button android:id="@+id/cancel_button" 89 android:layout_width="150dip" 90 android:layout_height="wrap_content" 91 android:layout_margin="5dip" 92 android:layout_alignParentStart="true" 93 android:text="@string/lockpassword_cancel_label" 94 /> 95 96 <Button android:id="@+id/next_button" 97 android:layout_width="150dip" 98 android:layout_height="wrap_content" 99 android:layout_margin="5dip" 100 android:layout_alignParentEnd="true" 101 android:drawableEnd="@drawable/ic_btn_next" 102 android:drawablePadding="10dip" 103 android:text="@string/lockpassword_continue_label" 104 /> 105 106 </RelativeLayout> 107 108 </LinearLayout> 109 110