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<com.android.keyguard.KeyguardPasswordView 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 xmlns:androidprv="http://schemas.android.com/apk/res-auto" 22 android:id="@+id/keyguard_password_view" 23 android:orientation="vertical" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 androidprv:layout_maxWidth="@dimen/keyguard_security_width" 27 androidprv:layout_maxHeight="@dimen/keyguard_security_height" 28 android:gravity="bottom" 29 > 30 31 <Space 32 android:layout_width="match_parent" 33 android:layout_height="0dp" 34 android:layout_weight="7" 35 /> 36 37 <include layout="@layout/keyguard_message_area" 38 android:layout_width="match_parent" 39 android:layout_height="wrap_content" /> 40 41 <!-- Password entry field --> 42 <FrameLayout 43 android:layout_height="wrap_content" 44 android:layout_width="280dp" 45 android:layout_gravity="center_horizontal" 46 android:theme="?attr/passwordStyle" 47 > 48 49 <EditText android:id="@+id/passwordEntry" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:contentDescription="@string/keyguard_accessibility_password" 53 android:gravity="center_horizontal" 54 android:singleLine="true" 55 android:textStyle="normal" 56 android:inputType="textPassword" 57 android:textSize="16sp" 58 android:textColor="?attr/wallpaperTextColor" 59 android:textAppearance="?android:attr/textAppearanceMedium" 60 android:imeOptions="flagForceAscii|actionDone" 61 android:maxLength="500" 62 /> 63 64 <ImageView android:id="@+id/switch_ime_button" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:layout_marginBottom="12dp" 68 android:src="@drawable/ic_lockscreen_ime" 69 android:contentDescription="@string/accessibility_ime_switch_button" 70 android:clickable="true" 71 android:padding="8dip" 72 android:tint="@color/background_protected" 73 android:layout_gravity="end|center_vertical" 74 android:background="?android:attr/selectableItemBackground" 75 android:visibility="gone" 76 /> 77 </FrameLayout> 78 79 <Space 80 android:layout_width="match_parent" 81 android:layout_height="0dp" 82 android:layout_weight="2" 83 /> 84 85 <include layout="@layout/keyguard_eca" 86 android:id="@+id/keyguard_selector_fade_container" 87 android:layout_width="match_parent" 88 android:layout_height="wrap_content" 89 android:layout_marginBottom="12dp" 90 android:orientation="vertical" 91 android:layout_gravity="bottom|center_horizontal" 92 android:gravity="center_horizontal" /> 93 94</com.android.keyguard.KeyguardPasswordView> 95