1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 ** Copyright 2014, 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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:gravity="center_horizontal" 24 android:orientation="vertical"> 25 <!-- header text ('Enter Pin') --> 26 <LinearLayout 27 android:layout_width="match_parent" 28 android:layout_height="0dp" 29 android:layout_weight="1" 30 android:orientation="vertical" 31 android:padding="48dp"> 32 <TextView 33 android:id="@+id/headerText" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:gravity="center" 37 android:lines="2" 38 android:textAppearance="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle" 39 android:accessibilityLiveRegion="polite"/> 40 41 <!-- hint text ('PIN too short') --> 42 <TextView 43 android:id="@+id/hintText" 44 android:layout_width="match_parent" 45 android:layout_height="wrap_content" 46 android:gravity="center" 47 android:lines="2" /> 48 49 <!-- error text ('PIN too short') --> 50 <TextView 51 android:id="@+id/errorText" 52 android:layout_width="match_parent" 53 android:layout_height="wrap_content" 54 android:gravity="center" 55 android:lines="2" 56 android:textColor="@android:color/holo_red_dark"/> 57 58 <!-- Password entry field --> 59 <EditText 60 android:id="@+id/pin_entry" 61 android:layout_width="match_parent" 62 android:layout_height="wrap_content" 63 android:layout_gravity="center" 64 android:gravity="center" 65 android:imeOptions="actionNext|flagNoExtractUi" 66 android:inputType="numberPassword" 67 android:textSize="24sp"/> 68 </LinearLayout> 69 70 <LinearLayout 71 android:layout_width="match_parent" 72 android:layout_height="wrap_content" 73 android:clipChildren="false" 74 android:clipToPadding="false" 75 android:gravity="end" 76 android:orientation="horizontal"> 77 78 <!-- left : cancel --> 79 <Button 80 android:id="@+id/cancel_button" 81 android:layout_width="0dp" 82 android:layout_weight="1" 83 android:layout_height="wrap_content" 84 android:text="@string/change_pin_cancel_label"/> 85 86 <!-- right : continue --> 87 <Button 88 android:id="@+id/next_button" 89 android:layout_width="0dp" 90 android:layout_weight="1" 91 android:layout_height="wrap_content" 92 android:text="@string/change_pin_continue_label"/> 93 94 </LinearLayout> 95 </LinearLayout> 96