1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3** 4** Copyright 2018, 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<!-- Car customizations 21 - Added title "Enter your Password" below the password field 22 - Hid the emergency call at the bottom 23--> 24 25<com.android.keyguard.KeyguardPasswordView 26 xmlns:android="http://schemas.android.com/apk/res/android" 27 xmlns:androidprv="http://schemas.android.com/apk/res-auto" 28 android:id="@+id/keyguard_password_view" 29 android:orientation="vertical" 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 android:gravity="center"> 33 34 <include layout="@layout/keyguard_message_area" /> 35 36 <!-- Password entry field --> 37 <LinearLayout 38 android:layout_height="wrap_content" 39 android:layout_width="wrap_content" 40 android:layout_gravity="center_horizontal" 41 android:orientation="vertical" 42 android:theme="?attr/passwordStyle"> 43 44 <EditText 45 android:id="@+id/passwordEntry" 46 android:layout_width="@dimen/password_field_width" 47 android:layout_height="wrap_content" 48 android:gravity="center_horizontal" 49 android:singleLine="true" 50 android:textStyle="normal" 51 android:inputType="textPassword" 52 android:textSize="@*android:dimen/car_body1_size" 53 android:textColor="?attr/wallpaperTextColor" 54 android:textAppearance="?android:attr/textAppearanceMedium" 55 android:imeOptions="flagForceAscii|actionDone" 56 android:maxLength="@integer/password_max_length" 57 /> 58 59 <TextView 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:layout_margin="@*android:dimen/car_padding_2" 63 android:gravity="center" 64 android:textColor="@android:color/white" 65 android:textSize="@*android:dimen/car_body1_size" 66 android:text="@string/keyguard_enter_your_password" /> 67 68 <Button 69 android:id="@+id/cancel_button" 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:layout_gravity="center" 73 style="@style/KeyguardButton" 74 android:text="@string/cancel"/> 75 76 <ImageView android:id="@+id/switch_ime_button" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:layout_marginBottom="12dp" 80 android:src="@drawable/ic_lockscreen_ime" 81 android:contentDescription="@string/accessibility_ime_switch_button" 82 android:clickable="true" 83 android:padding="8dp" 84 android:tint="@color/background_protected" 85 android:layout_gravity="end|center_vertical" 86 android:background="?android:attr/selectableItemBackground" 87 android:visibility="gone" 88 /> 89 </LinearLayout> 90 91 <include layout="@layout/keyguard_eca" 92 android:id="@+id/keyguard_selector_fade_container" 93 android:layout_width="match_parent" 94 android:layout_height="wrap_content" 95 android:layout_marginBottom="12dp" 96 android:orientation="vertical" 97 android:layout_gravity="bottom|center_horizontal" 98 android:gravity="center_horizontal" 99 android:visibility="gone" 100 /> 101 102</com.android.keyguard.KeyguardPasswordView> 103