blob: d7b95b60737164ab2ec0a81f203cd2086d942fc2 [file] [log] [blame]
joshmccloskey04582622019-05-06 21:42:14 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 ~ Copyright (C) 2018 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 xmlns:FaceEnrollAccessibilitySwitch="http://schemas.android.com/apk/res/com.android.settings"
22 style="?attr/face_layout_theme"
23 android:id="@+id/setup_wizard_layout"
24 android:layout_width="match_parent"
25 android:layout_height="match_parent">
26
27 <LinearLayout
28 style="@style/SudContentFrame"
29 android:layout_width="match_parent"
30 android:layout_height="match_parent"
31 android:clipChildren="false"
32 android:clipToPadding="false"
33 android:orientation="vertical">
34
35 <com.google.android.setupdesign.view.RichTextView
36 android:id="@+id/sud_layout_description"
37 style="@style/SudDescription.Glif"
38 android:layout_width="match_parent"
39 android:layout_height="wrap_content"
40 android:textAlignment="center"
41 android:text="@string/security_settings_face_enroll_education_message"/>
42
joshmccloskeyfe6784b2019-05-09 16:01:13 -070043 <Space android:layout_width="match_parent"
44 android:layout_height="0dp"
45 android:layout_weight="1"/>
joshmccloskey04582622019-05-06 21:42:14 -070046
47 <FrameLayout
48 android:layout_width="match_parent"
49 android:layout_height="wrap_content"
joshmccloskeyfe6784b2019-05-09 16:01:13 -070050 android:layout_marginVertical="12dp">
joshmccloskey04582622019-05-06 21:42:14 -070051
52 <com.google.android.setupdesign.view.IllustrationVideoView
53 android:id="@+id/illustration_normal"
54 style="@style/SudContentIllustration"
55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
57 app:sudVideo="@raw/face_education"/>
58
59 <ImageView
60 android:id="@+id/illustration_accessibility"
61 android:layout_width="wrap_content"
62 android:layout_height="wrap_content"
63 android:layout_gravity="center"
64 android:visibility="invisible"
65 android:background="@drawable/face_enroll_introduction"/>
66
67 </FrameLayout>
68
joshmccloskeyfe6784b2019-05-09 16:01:13 -070069 <Space android:layout_width="match_parent"
70 android:layout_height="0dp"
71 android:layout_weight="1"/>
72
joshmccloskey04582622019-05-06 21:42:14 -070073 <!-- Contains the buttons and extra information text at the bottom -->
74 <LinearLayout
75 android:layout_width="match_parent"
76 android:layout_height="wrap_content"
77 android:orientation="vertical"
78 android:layout_gravity="center_horizontal|bottom">
79
80 <FrameLayout
81 android:layout_width="match_parent"
82 android:layout_height="wrap_content">
83
84 <Button
85 android:id="@+id/accessibility_button"
86 style="@style/SudGlifButton.Secondary"
87 android:layout_gravity="center"
88 android:layout_width="wrap_content"
89 android:layout_height="wrap_content"
90 android:text="@string/security_settings_face_enroll_introduction_accessibility"/>
91
92 <com.android.settings.biometrics.face.FaceEnrollAccessibilityToggle
93 android:id="@+id/toggle_diversity"
94 android:layout_width="match_parent"
95 android:layout_height="wrap_content"
96 android:visibility="gone"
97 FaceEnrollAccessibilitySwitch:messageText="@string/security_settings_face_enroll_introduction_accessibility_diversity"/>
98
99 </FrameLayout>
100
101 </LinearLayout>
102
103 </LinearLayout>
104
105</com.google.android.setupdesign.GlifLayout>