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 <!-- Password entry field --> 38 <FrameLayout 39 android:layout_height="wrap_content" 40 android:layout_width="280dp" 41 android:layout_gravity="center_horizontal" 42 android:theme="?attr/passwordStyle" 43 > 44 45 <EditText android:id="@+id/passwordEntry" 46 android:layout_width="match_parent" 47 android:layout_height="wrap_content" 48 android:contentDescription="@string/keyguard_accessibility_password" 49 android:gravity="center_horizontal" 50 android:singleLine="true" 51 android:textStyle="normal" 52 android:inputType="textPassword" 53 android:textSize="16sp" 54 android:textAppearance="?android:attr/textAppearanceMedium" 55 android:imeOptions="flagForceAscii|actionDone" 56 android:textCursorDrawable="@null" 57 android:maxLength="500" 58 /> 59 60 <ImageView android:id="@+id/switch_ime_button" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:layout_marginBottom="12dp" 64 android:src="@drawable/ic_lockscreen_ime" 65 android:contentDescription="@string/accessibility_ime_switch_button" 66 android:clickable="true" 67 android:padding="8dip" 68 android:tint="?android:attr/textColorPrimary" 69 android:layout_gravity="end|center_vertical" 70 android:background="?android:attr/selectableItemBackground" 71 android:visibility="gone" 72 /> 73 </FrameLayout> 74 75 <Space 76 android:layout_width="match_parent" 77 android:layout_height="0dp" 78 android:layout_weight="2" 79 /> 80 81 <include layout="@layout/keyguard_eca" 82 android:id="@+id/keyguard_selector_fade_container" 83 android:layout_width="match_parent" 84 android:layout_height="wrap_content" 85 android:layout_marginBottom="12dp" 86 android:orientation="vertical" 87 android:layout_gravity="bottom|center_horizontal" 88 android:gravity="center_horizontal" /> 89 90</com.android.keyguard.KeyguardPasswordView> 91