1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2014 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:gravity="center_horizontal" 21 android:orientation="vertical"> 22 <!-- header text ('Enter Pin') --> 23 <LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="0dp" 26 android:layout_weight="1" 27 android:orientation="vertical" 28 android:paddingTop="48dp" 29 android:paddingStart="48dp" 30 android:paddingEnd="48dp"> 31 <TextView 32 android:id="@+id/headerText" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:gravity="center" 36 android:lines="2" 37 android:textAppearance="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle" 38 android:accessibilityLiveRegion="polite"/> 39 40 <!-- hint text ('PIN too short') --> 41 <TextView 42 android:id="@+id/hintText" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:gravity="center" 46 android:lines="2"/> 47 48 <!-- error text ('PIN too short') --> 49 <TextView 50 android:id="@+id/errorText" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:gravity="center" 54 android:lines="2" 55 android:textColor="@android:color/holo_red_dark"/> 56 57 <!-- Password entry field --> 58 <EditText 59 android:id="@+id/pin_entry" 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:layout_gravity="center" 63 android:gravity="center" 64 android:imeOptions="actionNext|flagNoExtractUi" 65 android:inputType="numberPassword" 66 android:textSize="24sp"/> 67 </LinearLayout> 68 69 <LinearLayout 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content" 72 android:clipChildren="false" 73 android:clipToPadding="false" 74 android:gravity="end" 75 android:orientation="horizontal"> 76 77 <!-- left : cancel --> 78 <Button 79 android:id="@+id/cancel_button" 80 android:layout_width="0dp" 81 android:layout_weight="1" 82 android:layout_height="wrap_content" 83 android:text="@string/change_pin_cancel_label"/> 84 85 <!-- right : continue --> 86 <Button 87 android:id="@+id/next_button" 88 android:layout_width="0dp" 89 android:layout_weight="1" 90 android:layout_height="wrap_content" 91 android:text="@string/change_pin_continue_label"/> 92 93 </LinearLayout> 94</LinearLayout> 95