OSDN Git Service

Updated Face Enroll Introduction
[android-x86/packages-apps-Settings.git] / res / layout / face_enroll_introduction.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3   ~ Copyright (C) 2019 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:text="@string/security_settings_face_enroll_introduction_message"/>
41
42         <com.google.android.setupdesign.view.RichTextView
43             android:id="@+id/error_text"
44             style="@style/SudDescription.Glif"
45             android:layout_width="match_parent"
46             android:layout_height="wrap_content"/>
47
48         <FrameLayout
49             android:layout_width="match_parent"
50             android:layout_height="wrap_content"
51             android:layout_marginVertical="48dp">
52
53             <com.google.android.setupdesign.view.IllustrationVideoView
54                 android:id="@+id/illustration_normal"
55                 android:layout_width="wrap_content"
56                 android:layout_height="wrap_content"
57                 style="@style/SudContentIllustration"
58                 app:sudVideo="@raw/face_enroll_introduction_animation"/>
59
60         </FrameLayout>
61
62         <!-- Contains the buttons and extra information text at the bottom -->
63         <LinearLayout
64             android:layout_width="match_parent"
65             android:layout_height="wrap_content"
66             android:orientation="vertical"
67             android:layout_gravity="center_horizontal|bottom">
68
69             <LinearLayout
70                 android:layout_width="match_parent"
71                 android:layout_height="wrap_content"
72                 android:orientation="horizontal"
73                 android:paddingStart="16dp"
74                 android:paddingEnd="16dp"
75                 android:paddingTop="24dp">
76
77                 <ImageView
78                     android:layout_width="wrap_content"
79                     android:layout_height="wrap_content"
80                     android:background="@drawable/ic_face_enroll_introduction_shield">
81                 </ImageView>
82                 <Space
83                     android:layout_width="8dp"
84                     android:layout_height="wrap_content"/>
85                 <TextView
86                     android:layout_width="match_parent"
87                     android:layout_height="wrap_content"
88                     android:text="@string/security_settings_face_enroll_introduction_footer_part_1"/>
89
90             </LinearLayout>
91
92             <LinearLayout
93                 android:layout_width="match_parent"
94                 android:layout_height="wrap_content"
95                 android:orientation="horizontal"
96                 android:paddingStart="16dp"
97                 android:paddingEnd="16dp"
98                 android:paddingTop="24dp">
99
100                 <ImageView
101                     android:layout_width="wrap_content"
102                     android:layout_height="wrap_content"
103                     android:background="@drawable/ic_face_enroll_introduction_visibility">
104                 </ImageView>
105                 <Space
106                     android:layout_width="8dp"
107                     android:layout_height="wrap_content"/>
108                 <TextView
109                     android:layout_width="match_parent"
110                     android:layout_height="wrap_content"
111                     android:text="@string/security_settings_face_enroll_introduction_footer_part_2"/>
112
113             </LinearLayout>
114
115             <LinearLayout
116                 android:layout_width="match_parent"
117                 android:layout_height="wrap_content"
118                 android:orientation="horizontal"
119                 android:paddingStart="16dp"
120                 android:paddingEnd="16dp"
121                 android:paddingTop="24dp">
122
123                 <ImageView
124                     android:layout_width="wrap_content"
125                     android:layout_height="wrap_content"
126                     android:background="@drawable/ic_face_enroll_introduction_people">
127                 </ImageView>
128                 <Space
129                     android:layout_width="8dp"
130                     android:layout_height="wrap_content"/>
131                 <TextView
132                     android:layout_width="match_parent"
133                     android:layout_height="wrap_content"
134                     android:text="@string/security_settings_face_enroll_introduction_footer_part_3"/>
135             </LinearLayout>
136
137         </LinearLayout>
138
139     </LinearLayout>
140
141 </com.google.android.setupdesign.GlifLayout>