Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 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 | --> |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 19 | <com.android.keyguard.KeyguardPasswordView |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
Jorim Jaggi | 380ecb8 | 2014-03-14 17:25:20 +0100 | [diff] [blame] | 21 | xmlns:androidprv="http://schemas.android.com/apk/res-auto" |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 22 | android:id="@+id/keyguard_password_view" |
| 23 | android:orientation="vertical" |
| 24 | android:layout_width="match_parent" |
| 25 | android:layout_height="match_parent" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 26 | androidprv:layout_maxWidth="@dimen/keyguard_security_width" |
| 27 | androidprv:layout_maxHeight="@dimen/keyguard_security_height" |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 28 | android:gravity="bottom" |
| 29 | > |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 30 | |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 31 | <Space |
Jim Miller | 3af630c | 2012-09-26 14:29:18 -0700 | [diff] [blame] | 32 | android:layout_width="match_parent" |
Adam Powell | 70bc9f2 | 2012-10-12 22:02:27 -0700 | [diff] [blame] | 33 | android:layout_height="0dp" |
Jorim Jaggi | e070018 | 2014-08-21 01:12:37 +0200 | [diff] [blame] | 34 | android:layout_weight="7" |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 35 | /> |
Jim Miller | 3af630c | 2012-09-26 14:29:18 -0700 | [diff] [blame] | 36 | |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 37 | <include layout="@layout/keyguard_message_area" |
| 38 | android:layout_width="match_parent" |
| 39 | android:layout_height="wrap_content" /> |
Jim Miller | 0b72824 | 2012-10-28 19:42:30 -0700 | [diff] [blame] | 40 | |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 41 | <!-- Password entry field --> |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 42 | <FrameLayout |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 43 | android:layout_height="wrap_content" |
Jorim Jaggi | e070018 | 2014-08-21 01:12:37 +0200 | [diff] [blame] | 44 | android:layout_width="280dp" |
| 45 | android:layout_gravity="center_horizontal" |
Lucas Dupin | e17ce52 | 2017-07-17 15:45:06 -0700 | [diff] [blame] | 46 | android:theme="?attr/passwordStyle" |
Daniel Sandler | 8a26bf5 | 2012-10-30 13:29:50 -0400 | [diff] [blame] | 47 | > |
Jorim Jaggi | e070018 | 2014-08-21 01:12:37 +0200 | [diff] [blame] | 48 | |
| 49 | <EditText android:id="@+id/passwordEntry" |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 50 | android:layout_width="match_parent" |
Jorim Jaggi | e070018 | 2014-08-21 01:12:37 +0200 | [diff] [blame] | 51 | android:layout_height="wrap_content" |
Rohan Shah | fa32b35 | 2018-05-04 15:54:19 -0700 | [diff] [blame] | 52 | android:contentDescription="@string/keyguard_accessibility_password" |
Jorim Jaggi | e070018 | 2014-08-21 01:12:37 +0200 | [diff] [blame] | 53 | android:gravity="center_horizontal" |
| 54 | android:singleLine="true" |
| 55 | android:textStyle="normal" |
| 56 | android:inputType="textPassword" |
| 57 | android:textSize="16sp" |
Lucas Dupin | a360e1e7 | 2017-07-17 17:25:20 -0700 | [diff] [blame] | 58 | android:textColor="?attr/wallpaperTextColor" |
Jorim Jaggi | e070018 | 2014-08-21 01:12:37 +0200 | [diff] [blame] | 59 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 60 | android:imeOptions="flagForceAscii|actionDone" |
Adrian Roos | 9b6a609 | 2015-07-21 13:27:22 -0700 | [diff] [blame] | 61 | android:maxLength="500" |
Jorim Jaggi | e070018 | 2014-08-21 01:12:37 +0200 | [diff] [blame] | 62 | /> |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 63 | |
Jorim Jaggi | e070018 | 2014-08-21 01:12:37 +0200 | [diff] [blame] | 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" |
Adrian Roos | 4a002631 | 2015-02-19 17:39:40 +0100 | [diff] [blame] | 69 | android:contentDescription="@string/accessibility_ime_switch_button" |
Jorim Jaggi | e070018 | 2014-08-21 01:12:37 +0200 | [diff] [blame] | 70 | android:clickable="true" |
| 71 | android:padding="8dip" |
Lucas Dupin | 987f193 | 2017-05-13 21:02:52 -0700 | [diff] [blame] | 72 | android:tint="@color/background_protected" |
Jorim Jaggi | e070018 | 2014-08-21 01:12:37 +0200 | [diff] [blame] | 73 | android:layout_gravity="end|center_vertical" |
| 74 | android:background="?android:attr/selectableItemBackground" |
| 75 | android:visibility="gone" |
| 76 | /> |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 77 | </FrameLayout> |
Adam Powell | 9799714 | 2012-11-06 21:32:42 -0800 | [diff] [blame] | 78 | |
| 79 | <Space |
| 80 | android:layout_width="match_parent" |
| 81 | android:layout_height="0dp" |
Jorim Jaggi | e070018 | 2014-08-21 01:12:37 +0200 | [diff] [blame] | 82 | android:layout_weight="2" |
Adam Powell | 9799714 | 2012-11-06 21:32:42 -0800 | [diff] [blame] | 83 | /> |
| 84 | |
Jim Miller | 9e0a250 | 2012-11-07 21:23:32 -0800 | [diff] [blame] | 85 | <include layout="@layout/keyguard_eca" |
Adam Powell | 70bc9f2 | 2012-10-12 22:02:27 -0700 | [diff] [blame] | 86 | android:id="@+id/keyguard_selector_fade_container" |
| 87 | android:layout_width="match_parent" |
| 88 | android:layout_height="wrap_content" |
Jorim Jaggi | e070018 | 2014-08-21 01:12:37 +0200 | [diff] [blame] | 89 | android:layout_marginBottom="12dp" |
Adam Powell | 70bc9f2 | 2012-10-12 22:02:27 -0700 | [diff] [blame] | 90 | android:orientation="vertical" |
| 91 | android:layout_gravity="bottom|center_horizontal" |
| 92 | android:gravity="center_horizontal" /> |
| 93 | |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 94 | </com.android.keyguard.KeyguardPasswordView> |