blob: 11bd98f549caad3776f274a86573a1424ab63ab2 [file] [log] [blame]
Jim Millerdcb3d842012-08-23 19:18:12 -07001<?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-->
Jim Miller5ecd8112013-01-09 18:50:26 -080019<com.android.keyguard.KeyguardPasswordView
Jim Millerdcb3d842012-08-23 19:18:12 -070020 xmlns:android="http://schemas.android.com/apk/res/android"
Jorim Jaggi380ecb82014-03-14 17:25:20 +010021 xmlns:androidprv="http://schemas.android.com/apk/res-auto"
Jim Millerdcb3d842012-08-23 19:18:12 -070022 android:id="@+id/keyguard_password_view"
23 android:orientation="vertical"
24 android:layout_width="match_parent"
25 android:layout_height="match_parent"
Jim Miller5ecd8112013-01-09 18:50:26 -080026 androidprv:layout_maxWidth="@dimen/keyguard_security_width"
27 androidprv:layout_maxHeight="@dimen/keyguard_security_height"
Daniel Sandler8a26bf52012-10-30 13:29:50 -040028 android:gravity="bottom"
29 >
Jim Millerdcb3d842012-08-23 19:18:12 -070030
Daniel Sandler8a26bf52012-10-30 13:29:50 -040031 <Space
Jim Miller3af630c2012-09-26 14:29:18 -070032 android:layout_width="match_parent"
Adam Powell70bc9f22012-10-12 22:02:27 -070033 android:layout_height="0dp"
Jorim Jaggie0700182014-08-21 01:12:37 +020034 android:layout_weight="7"
Daniel Sandler8a26bf52012-10-30 13:29:50 -040035 />
Jim Miller3af630c2012-09-26 14:29:18 -070036
Daniel Sandler8a26bf52012-10-30 13:29:50 -040037 <include layout="@layout/keyguard_message_area"
38 android:layout_width="match_parent"
39 android:layout_height="wrap_content" />
Jim Miller0b728242012-10-28 19:42:30 -070040
Daniel Sandler8a26bf52012-10-30 13:29:50 -040041 <!-- Password entry field -->
Chris Wrenc0ae9e62012-11-05 13:16:31 -050042 <FrameLayout
Daniel Sandler8a26bf52012-10-30 13:29:50 -040043 android:layout_height="wrap_content"
Jorim Jaggie0700182014-08-21 01:12:37 +020044 android:layout_width="280dp"
45 android:layout_gravity="center_horizontal"
Lucas Dupine17ce522017-07-17 15:45:06 -070046 android:theme="?attr/passwordStyle"
Daniel Sandler8a26bf52012-10-30 13:29:50 -040047 >
Jorim Jaggie0700182014-08-21 01:12:37 +020048
49 <EditText android:id="@+id/passwordEntry"
Chris Wrenc0ae9e62012-11-05 13:16:31 -050050 android:layout_width="match_parent"
Jorim Jaggie0700182014-08-21 01:12:37 +020051 android:layout_height="wrap_content"
Rohan Shahfa32b352018-05-04 15:54:19 -070052 android:contentDescription="@string/keyguard_accessibility_password"
Jorim Jaggie0700182014-08-21 01:12:37 +020053 android:gravity="center_horizontal"
54 android:singleLine="true"
55 android:textStyle="normal"
56 android:inputType="textPassword"
57 android:textSize="16sp"
Lucas Dupina360e1e72017-07-17 17:25:20 -070058 android:textColor="?attr/wallpaperTextColor"
Jorim Jaggie0700182014-08-21 01:12:37 +020059 android:textAppearance="?android:attr/textAppearanceMedium"
60 android:imeOptions="flagForceAscii|actionDone"
Adrian Roos9b6a6092015-07-21 13:27:22 -070061 android:maxLength="500"
Jorim Jaggie0700182014-08-21 01:12:37 +020062 />
Jim Millerdcb3d842012-08-23 19:18:12 -070063
Jorim Jaggie0700182014-08-21 01:12:37 +020064 <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"
Adrian Roos4a0026312015-02-19 17:39:40 +010069 android:contentDescription="@string/accessibility_ime_switch_button"
Jorim Jaggie0700182014-08-21 01:12:37 +020070 android:clickable="true"
71 android:padding="8dip"
Lucas Dupin987f1932017-05-13 21:02:52 -070072 android:tint="@color/background_protected"
Jorim Jaggie0700182014-08-21 01:12:37 +020073 android:layout_gravity="end|center_vertical"
74 android:background="?android:attr/selectableItemBackground"
75 android:visibility="gone"
76 />
Chris Wrenc0ae9e62012-11-05 13:16:31 -050077 </FrameLayout>
Adam Powell97997142012-11-06 21:32:42 -080078
79 <Space
80 android:layout_width="match_parent"
81 android:layout_height="0dp"
Jorim Jaggie0700182014-08-21 01:12:37 +020082 android:layout_weight="2"
Adam Powell97997142012-11-06 21:32:42 -080083 />
84
Jim Miller9e0a2502012-11-07 21:23:32 -080085 <include layout="@layout/keyguard_eca"
Adam Powell70bc9f22012-10-12 22:02:27 -070086 android:id="@+id/keyguard_selector_fade_container"
87 android:layout_width="match_parent"
88 android:layout_height="wrap_content"
Jorim Jaggie0700182014-08-21 01:12:37 +020089 android:layout_marginBottom="12dp"
Adam Powell70bc9f22012-10-12 22:02:27 -070090 android:orientation="vertical"
91 android:layout_gravity="bottom|center_horizontal"
92 android:gravity="center_horizontal" />
93
Jim Miller5ecd8112013-01-09 18:50:26 -080094</com.android.keyguard.KeyguardPasswordView>