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 35 <com.google.android.setupdesign.view.RichTextView 36 android:id="@+id/error_text" 37 style="@style/SudDescription.Glif" 38 android:layout_width="match_parent" 39 android:layout_height="wrap_content" 40 android:visibility="gone"/> 41 42 <FrameLayout 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content"> 45 46 <ImageView 47 style="@style/SudContentIllustration" 48 android:layout_width="match_parent" 49 android:layout_height="match_parent" 50 android:contentDescription="@null" 51 android:src="@drawable/face_enroll_intro_illustration" 52 android:layout_marginBottom="@dimen/face_enroll_intro_illustration_margin_bottom"/> 53 54 </FrameLayout> 55 56 <!-- Contains the extra information text at the bottom --> 57 <LinearLayout 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:orientation="vertical"> 61 62 <!-- Keep in mind --> 63 <TextView 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content" 66 style="@style/BiometricEnrollIntroTitle" 67 android:text="@string/security_settings_face_enroll_introduction_info_title" /> 68 69 <LinearLayout 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content" 72 android:orientation="horizontal"> 73 74 <ImageView 75 android:id="@+id/icon_glasses" 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:background="@drawable/ic_face_enroll_introduction_glasses"/> 79 <Space 80 android:layout_width="16dp" 81 android:layout_height="wrap_content"/> 82 <TextView 83 android:id="@+id/info_message_glasses" 84 android:layout_width="match_parent" 85 android:layout_height="wrap_content" 86 style="@style/BiometricEnrollIntroMessage" /> 87 </LinearLayout> 88 89 <LinearLayout 90 android:layout_width="match_parent" 91 android:layout_height="wrap_content" 92 android:orientation="horizontal"> 93 94 <ImageView 95 android:id="@+id/icon_looking" 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" 98 android:background="@drawable/ic_face_enroll_introduction_visibility"/> 99 <Space 100 android:layout_width="16dp" 101 android:layout_height="wrap_content"/> 102 <TextView 103 android:id="@+id/info_message_looking" 104 android:layout_width="match_parent" 105 android:layout_height="wrap_content" 106 style="@style/BiometricEnrollIntroMessage" /> 107 </LinearLayout> 108 109 <LinearLayout 110 android:id="@+id/info_row_less_secure" 111 android:layout_width="match_parent" 112 android:layout_height="wrap_content" 113 android:orientation="horizontal" 114 android:visibility="gone"> 115 116 <ImageView 117 android:id="@+id/icon_less_secure" 118 android:layout_width="wrap_content" 119 android:layout_height="wrap_content" 120 android:background="@drawable/ic_info_outline_24dp"/> 121 <Space 122 android:layout_width="16dp" 123 android:layout_height="wrap_content"/> 124 <TextView 125 android:id="@+id/info_message_less_secure" 126 android:layout_width="match_parent" 127 android:layout_height="wrap_content" 128 style="@style/BiometricEnrollIntroMessage" 129 android:text="@string/security_settings_face_enroll_introduction_info_less_secure" /> 130 </LinearLayout> 131 132 <LinearLayout 133 android:id="@+id/info_row_require_eyes" 134 android:layout_width="match_parent" 135 android:layout_height="wrap_content" 136 android:orientation="horizontal" 137 android:visibility="gone"> 138 139 <ImageView 140 android:id="@+id/icon_require_eyes" 141 android:layout_width="wrap_content" 142 android:layout_height="wrap_content" 143 android:background="@drawable/ic_settings_24dp"/> 144 <Space 145 android:layout_width="16dp" 146 android:layout_height="wrap_content"/> 147 <TextView 148 android:id="@+id/info_message_require_eyes" 149 android:layout_width="match_parent" 150 android:layout_height="wrap_content" 151 style="@style/BiometricEnrollIntroMessage" /> 152 </LinearLayout> 153 154 <!-- How it works --> 155 <TextView 156 android:layout_width="match_parent" 157 android:layout_height="wrap_content" 158 style="@style/BiometricEnrollIntroTitle" 159 android:text="@string/security_settings_face_enroll_introduction_how_title" /> 160 161 <TextView 162 android:id="@+id/how_message" 163 android:layout_width="match_parent" 164 android:layout_height="wrap_content" 165 style="@style/BiometricEnrollIntroMessage" /> 166 167 <!-- You're in control --> 168 <TextView 169 android:id="@+id/title_in_control" 170 android:layout_width="match_parent" 171 android:layout_height="wrap_content" 172 style="@style/BiometricEnrollIntroTitle" /> 173 174 <TextView 175 android:id="@+id/message_in_control" 176 android:layout_width="match_parent" 177 android:layout_height="wrap_content" 178 style="@style/BiometricEnrollIntroMessage" 179 android:paddingBottom="0dp" /> 180 181 </LinearLayout> 182 183 </LinearLayout> 184 185</com.google.android.setupdesign.GlifLayout>