1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2021 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17 18<com.google.android.setupdesign.GlifLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 style="?attr/face_layout_theme" 22 android:id="@+id/setup_wizard_layout" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 app:sudDescriptionText="@string/security_settings_face_enroll_introduction_message"> 26 27 <LinearLayout 28 style="@style/SudContentFrame" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:clipChildren="false" 32 android:clipToPadding="false" 33 android:orientation="vertical" 34 android:layout_marginStart="?attr/sudMarginStart" 35 android:layout_marginEnd="?attr/sudMarginEnd"> 36 37 <com.google.android.setupdesign.view.RichTextView 38 android:id="@+id/error_text" 39 style="@style/SudDescription.Glif" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:visibility="gone"/> 43 44 <FrameLayout 45 android:layout_width="match_parent" 46 android:layout_height="wrap_content"> 47 48 <ImageView 49 style="@style/SudContentIllustration" 50 android:layout_width="match_parent" 51 android:layout_height="match_parent" 52 android:contentDescription="@null" 53 android:src="@drawable/face_enroll_intro_illustration"/> 54 55 </FrameLayout> 56 57 <!-- Contains the extra information text at the bottom --> 58 <LinearLayout 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:orientation="vertical"> 62 63 <!-- Keep in mind --> 64 <TextView 65 android:layout_width="match_parent" 66 android:layout_height="wrap_content" 67 style="@style/BiometricEnrollIntroTitle" 68 android:text="@string/security_settings_face_enroll_introduction_info_title" /> 69 70 <LinearLayout 71 android:layout_width="match_parent" 72 android:layout_height="wrap_content" 73 android:orientation="horizontal"> 74 75 <ImageView 76 android:id="@+id/icon_glasses" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:background="@drawable/ic_face_enroll_introduction_glasses"/> 80 <Space 81 android:layout_width="16dp" 82 android:layout_height="wrap_content"/> 83 <TextView 84 android:id="@+id/info_message_glasses" 85 android:layout_width="match_parent" 86 android:layout_height="wrap_content" 87 style="@style/BiometricEnrollIntroMessage" /> 88 </LinearLayout> 89 90 <LinearLayout 91 android:layout_width="match_parent" 92 android:layout_height="wrap_content" 93 android:orientation="horizontal"> 94 95 <ImageView 96 android:id="@+id/icon_looking" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:background="@drawable/ic_face_enroll_introduction_visibility"/> 100 <Space 101 android:layout_width="16dp" 102 android:layout_height="wrap_content"/> 103 <TextView 104 android:id="@+id/info_message_looking" 105 android:layout_width="match_parent" 106 android:layout_height="wrap_content" 107 style="@style/BiometricEnrollIntroMessage" /> 108 </LinearLayout> 109 110 <LinearLayout 111 android:id="@+id/info_row_less_secure" 112 android:layout_width="match_parent" 113 android:layout_height="wrap_content" 114 android:orientation="horizontal" 115 android:visibility="gone"> 116 117 <ImageView 118 android:id="@+id/icon_less_secure" 119 android:layout_width="wrap_content" 120 android:layout_height="wrap_content" 121 android:background="@drawable/ic_info_outline_24dp"/> 122 <Space 123 android:layout_width="16dp" 124 android:layout_height="wrap_content"/> 125 <TextView 126 android:id="@+id/info_message_less_secure" 127 android:layout_width="match_parent" 128 android:layout_height="wrap_content" 129 style="@style/BiometricEnrollIntroMessage" 130 android:text="@string/security_settings_face_enroll_introduction_info_less_secure" /> 131 </LinearLayout> 132 133 <LinearLayout 134 android:id="@+id/info_row_require_eyes" 135 android:layout_width="match_parent" 136 android:layout_height="wrap_content" 137 android:orientation="horizontal" 138 android:visibility="gone"> 139 140 <ImageView 141 android:id="@+id/icon_require_eyes" 142 android:layout_width="wrap_content" 143 android:layout_height="wrap_content" 144 android:background="@drawable/ic_settings_24dp"/> 145 <Space 146 android:layout_width="16dp" 147 android:layout_height="wrap_content"/> 148 <TextView 149 android:id="@+id/info_message_require_eyes" 150 android:layout_width="match_parent" 151 android:layout_height="wrap_content" 152 style="@style/BiometricEnrollIntroMessage" /> 153 </LinearLayout> 154 155 <!-- How it works --> 156 <TextView 157 android:layout_width="match_parent" 158 android:layout_height="wrap_content" 159 style="@style/BiometricEnrollIntroTitle" 160 android:text="@string/security_settings_face_enroll_introduction_how_title" /> 161 162 <TextView 163 android:id="@+id/how_message" 164 android:layout_width="match_parent" 165 android:layout_height="wrap_content" 166 style="@style/BiometricEnrollIntroMessage" /> 167 168 <!-- You're in control --> 169 <TextView 170 android:id="@+id/title_in_control" 171 android:layout_width="match_parent" 172 android:layout_height="wrap_content" 173 style="@style/BiometricEnrollIntroTitle" /> 174 175 <TextView 176 android:id="@+id/message_in_control" 177 android:layout_width="match_parent" 178 android:layout_height="wrap_content" 179 style="@style/BiometricEnrollIntroMessage" 180 android:paddingBottom="0dp" /> 181 182 </LinearLayout> 183 184 </LinearLayout> 185 186</com.google.android.setupdesign.GlifLayout>