Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright (C) 2019 The Android Open Source Project |
| 3 | ~ |
| 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | ~ you may not use this file except in compliance with the License. |
| 6 | ~ You may obtain a copy of the License at |
| 7 | ~ |
| 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | ~ |
| 10 | ~ Unless required by applicable law or agreed to in writing, software |
| 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | ~ See the License for the specific language governing permissions and |
| 14 | ~ limitations under the License. |
| 15 | --> |
| 16 | |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame] | 17 | <com.android.systemui.biometrics.AuthCredentialPasswordView |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="match_parent" |
| 21 | android:orientation="vertical" |
| 22 | android:gravity="center_horizontal" |
| 23 | android:elevation="@dimen/biometric_dialog_elevation"> |
| 24 | |
| 25 | <Space |
| 26 | android:layout_width="0dp" |
| 27 | android:layout_height="0dp" |
| 28 | android:layout_weight="1"/> |
| 29 | |
| 30 | <ImageView |
Alex Johnston | 5179ac6 | 2020-01-07 14:23:26 +0000 | [diff] [blame^] | 31 | android:id="@+id/icon" |
| 32 | android:layout_width="wrap_content" |
| 33 | android:layout_height="wrap_content"/> |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 34 | |
| 35 | <TextView |
| 36 | android:id="@+id/title" |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 37 | android:layout_width="match_parent" |
| 38 | android:layout_height="wrap_content" |
Alex Johnston | 5179ac6 | 2020-01-07 14:23:26 +0000 | [diff] [blame^] | 39 | style="@style/TextAppearance.AuthCredential.Title"/> |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 40 | |
| 41 | <TextView |
| 42 | android:id="@+id/subtitle" |
| 43 | android:layout_width="match_parent" |
| 44 | android:layout_height="wrap_content" |
| 45 | android:layout_marginHorizontal="24dp" |
| 46 | android:layout_marginTop="8dp" |
| 47 | android:textSize="16sp" |
| 48 | android:gravity="center" |
| 49 | android:textColor="?android:attr/textColorPrimary"/> |
| 50 | |
| 51 | <TextView |
| 52 | android:id="@+id/description" |
| 53 | android:layout_width="match_parent" |
| 54 | android:layout_height="wrap_content" |
Alex Johnston | 5179ac6 | 2020-01-07 14:23:26 +0000 | [diff] [blame^] | 55 | style="@style/TextAppearance.AuthCredential.Description"/> |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 56 | |
| 57 | <Space |
| 58 | android:layout_width="0dp" |
| 59 | android:layout_height="0dp" |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame] | 60 | android:layout_weight="1"/> |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 61 | |
| 62 | <TextView |
| 63 | android:id="@+id/error" |
| 64 | android:layout_width="match_parent" |
| 65 | android:layout_height="wrap_content" |
| 66 | android:layout_marginHorizontal="24dp" |
| 67 | android:textSize="16sp" |
| 68 | android:gravity="center" |
| 69 | android:textColor="?android:attr/colorError"/> |
| 70 | |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame] | 71 | <EditText |
| 72 | android:id="@+id/lockPassword" |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame] | 73 | android:layout_width="208dp" |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 74 | android:layout_height="wrap_content" |
Alex Johnston | 5179ac6 | 2020-01-07 14:23:26 +0000 | [diff] [blame^] | 75 | android:layout_gravity="center_horizontal" |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame] | 76 | android:gravity="center" |
| 77 | android:inputType="textPassword" |
| 78 | android:maxLength="500" |
Alex Johnston | 5179ac6 | 2020-01-07 14:23:26 +0000 | [diff] [blame^] | 79 | android:imeOptions="actionNext|flagNoFullscreen|flagForceAscii" |
| 80 | style="@style/TextAppearance.AuthCredential.PasswordEntry"/> |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 81 | |
| 82 | <Space |
| 83 | android:layout_width="0dp" |
| 84 | android:layout_height="0dp" |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame] | 85 | android:layout_weight="5"/> |
Kevin Chyn | ff168dc | 2019-09-16 16:04:38 -0700 | [diff] [blame] | 86 | |
Kevin Chyn | 8110ebb | 2019-10-02 11:16:31 -0700 | [diff] [blame] | 87 | </com.android.systemui.biometrics.AuthCredentialPasswordView> |