1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2023 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 android:id="@+id/setup_wizard_layout" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:icon="@drawable/ic_lock" 25 app:sucUsePartnerResource="false" 26 app:sucHeaderText="@string/security_settings_remoteauth_enroll_introduction_title" 27 app:sudDescriptionText="@string/security_settings_remoteauth_enroll_introduction_message"> 28 29 <androidx.constraintlayout.widget.ConstraintLayout 30 style="@style/SudContentFrame" 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:paddingHorizontal="@dimen/remoteauth_fragment_padding_horizontal" 34 app:layout_optimizationLevel="barrier"> 35 36 <com.android.settings.remoteauth.introduction.IntroductionImageCarousel 37 android:id="@+id/image_carousel_view" 38 android:layout_width="match_parent" 39 android:layout_height="wrap_content" 40 app:layout_constraintStart_toStartOf="parent" 41 app:layout_constraintEnd_toEndOf="parent" 42 app:layout_constraintTop_toTopOf="parent" /> 43 44 <!-- How it works --> 45 <TextView 46 android:id="@+id/explanation_subheading_how_it_works" 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 style="@style/BiometricEnrollIntroTitle" 50 android:text="@string/security_settings_remoteauth_enroll_introduction_how_title" 51 app:layout_constraintStart_toStartOf="parent" 52 app:layout_constraintTop_toBottomOf="@id/image_carousel_view" /> 53 54 <ImageView 55 android:id="@+id/explanation_icon_lock_open" 56 android:layout_width="@dimen/remoteauth_icon_small_size" 57 android:layout_height="@dimen/remoteauth_icon_small_size" 58 android:importantForAccessibility="no" 59 android:background="@drawable/ic_lock_open_24dp" 60 app:layout_constraintStart_toStartOf="parent" 61 app:layout_constraintTop_toBottomOf="@id/explanation_subheading_how_it_works" /> 62 63 <TextView 64 android:id="@+id/explanation_lock_open_description" 65 android:layout_width="match_parent" 66 android:layout_height="wrap_content" 67 android:layout_marginStart="@dimen/remoteauth_introduction_description_start_margin" 68 style="@style/BiometricEnrollIntroMessage" 69 android:text="@string/security_settings_remoteauth_enroll_introduction_info_lock_open" 70 app:layout_constrainedWidth="true" 71 app:layout_constraintEnd_toEndOf="parent" 72 app:layout_constraintStart_toEndOf="@id/explanation_icon_lock_open" 73 app:layout_constraintTop_toTopOf="@id/explanation_icon_lock_open" /> 74 75 <androidx.constraintlayout.widget.Barrier 76 android:id="@+id/explanation_lock_open_description_barrier" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 app:barrierDirection="bottom" 80 app:constraint_referenced_ids="explanation_icon_lock_open, explanation_lock_open_description" /> 81 82 <ImageView 83 android:id="@+id/explanation_icon_notifications" 84 android:layout_width="@dimen/remoteauth_icon_small_size" 85 android:layout_height="@dimen/remoteauth_icon_small_size" 86 android:importantForAccessibility="no" 87 android:background="@drawable/ic_notifications" 88 app:layout_constraintStart_toStartOf="parent" 89 app:layout_constraintTop_toBottomOf="@id/explanation_lock_open_description_barrier"/> 90 91 <TextView 92 android:id="@+id/explanation_notifications_description" 93 android:layout_width="match_parent" 94 android:layout_height="wrap_content" 95 android:layout_marginStart="@dimen/remoteauth_introduction_description_start_margin" 96 style="@style/BiometricEnrollIntroMessage" 97 android:text="@string/security_settings_remoteauth_enroll_introduction_info_notifications" 98 app:layout_constrainedWidth="true" 99 app:layout_constraintEnd_toEndOf="parent" 100 app:layout_constraintStart_toEndOf="@id/explanation_icon_notifications" 101 app:layout_constraintTop_toTopOf="@id/explanation_icon_notifications" /> 102 103 <androidx.constraintlayout.widget.Barrier 104 android:id="@+id/explanation_notifications_description_barrier" 105 android:layout_width="wrap_content" 106 android:layout_height="wrap_content" 107 app:barrierDirection="bottom" 108 app:constraint_referenced_ids="explanation_icon_notifications,explanation_notifications_description" /> 109 110 <!-- You're in control --> 111 <TextView 112 android:id="@+id/explanation_subheading_youre_in_control" 113 android:layout_width="wrap_content" 114 android:layout_height="wrap_content" 115 style="@style/BiometricEnrollIntroTitle" 116 android:text="@string/security_settings_remoteauth_enroll_introduction_youre_in_control_title" 117 app:layout_constraintStart_toStartOf="parent" 118 app:layout_constraintTop_toBottomOf="@id/explanation_notifications_description_barrier" /> 119 120 <ImageView 121 android:id="@+id/explanation_icon_remove_watch" 122 android:layout_width="@dimen/remoteauth_icon_small_size" 123 android:layout_height="@dimen/remoteauth_icon_small_size" 124 android:importantForAccessibility="no" 125 android:background="@drawable/ic_delete" 126 app:layout_constraintStart_toStartOf="parent" 127 app:layout_constraintTop_toBottomOf="@id/explanation_subheading_youre_in_control" /> 128 129 <TextView 130 android:id="@+id/explanation_remove_watch_description" 131 android:layout_width="match_parent" 132 android:layout_height="wrap_content" 133 android:layout_marginStart="@dimen/remoteauth_introduction_description_start_margin" 134 style="@style/BiometricEnrollIntroMessage" 135 android:text="@string/security_settings_remoteauth_enroll_introduction_info_remove_watch" 136 app:layout_constrainedWidth="true" 137 app:layout_constraintEnd_toEndOf="parent" 138 app:layout_constraintStart_toEndOf="@id/explanation_icon_remove_watch" 139 app:layout_constraintTop_toTopOf="@id/explanation_icon_remove_watch" /> 140 </androidx.constraintlayout.widget.ConstraintLayout> 141 142</com.google.android.setupdesign.GlifLayout>