OSDN Git Service

Added information icon
[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             android:visibility="gone"/>
48
49         <FrameLayout
50             android:layout_width="match_parent"
51             android:layout_height="wrap_content"
52             android:layout_marginVertical="12dp">
53
54             <com.google.android.setupdesign.view.IllustrationVideoView
55                 android:id="@+id/illustration_normal"
56                 android:layout_width="wrap_content"
57                 android:layout_height="wrap_content"
58                 style="@style/SudContentIllustration"
59                 app:sudVideo="@raw/face_enroll_introduction_animation"/>
60
61         </FrameLayout>
62
63         <!-- Contains the buttons and extra information text at the bottom -->
64         <LinearLayout
65             android:layout_width="match_parent"
66             android:layout_height="wrap_content"
67             android:orientation="vertical"
68             android:layout_gravity="center_horizontal|bottom">
69
70             <LinearLayout
71                 android:layout_width="match_parent"
72                 android:layout_height="wrap_content"
73                 android:orientation="horizontal">
74
75                 <ImageView
76                     android:layout_width="wrap_content"
77                     android:layout_height="wrap_content"
78                     android:background="@drawable/ic_info_outline_24dp">
79                 </ImageView>
80                 <Space
81                     android:layout_width="24dp"
82                     android:layout_height="wrap_content"/>
83                 <TextView
84                     android:layout_width="match_parent"
85                     android:layout_height="wrap_content"
86                     android:text="@string/security_settings_face_enroll_introduction_footer_part_0"/>
87
88             </LinearLayout>
89
90             <LinearLayout
91                 android:layout_width="match_parent"
92                 android:layout_height="wrap_content"
93                 android:orientation="horizontal"
94                 android:paddingTop="24dp">
95
96                 <ImageView
97                     android:layout_width="wrap_content"
98                     android:layout_height="wrap_content"
99                     android:background="@drawable/ic_face_enroll_introduction_shield">
100                 </ImageView>
101                 <Space
102                     android:layout_width="24dp"
103                     android:layout_height="wrap_content"/>
104                 <TextView
105                     android:layout_width="match_parent"
106                     android:layout_height="wrap_content"
107                     android:text="@string/security_settings_face_enroll_introduction_footer_part_1"/>
108
109             </LinearLayout>
110
111             <LinearLayout
112                 android:layout_width="match_parent"
113                 android:layout_height="wrap_content"
114                 android:orientation="horizontal"
115                 android:paddingTop="24dp">
116
117                 <ImageView
118                     android:layout_width="wrap_content"
119                     android:layout_height="wrap_content"
120                     android:background="@drawable/ic_face_enroll_introduction_visibility">
121                 </ImageView>
122                 <Space
123                     android:layout_width="24dp"
124                     android:layout_height="wrap_content"/>
125                 <TextView
126                     android:layout_width="match_parent"
127                     android:layout_height="wrap_content"
128                     android:text="@string/security_settings_face_enroll_introduction_footer_part_2"/>
129
130             </LinearLayout>
131
132             <LinearLayout
133                 android:layout_width="match_parent"
134                 android:layout_height="wrap_content"
135                 android:orientation="horizontal"
136                 android:paddingTop="24dp">
137
138                 <ImageView
139                     android:layout_width="wrap_content"
140                     android:layout_height="wrap_content"
141                     android:background="@drawable/ic_face_enroll_introduction_people">
142                 </ImageView>
143                 <Space
144                     android:layout_width="24dp"
145                     android:layout_height="wrap_content"/>
146                 <TextView
147                     android:layout_width="match_parent"
148                     android:layout_height="wrap_content"
149                     android:text="@string/security_settings_face_enroll_introduction_footer_part_3"/>
150             </LinearLayout>
151
152         </LinearLayout>
153
154     </LinearLayout>
155
156 </com.google.android.setupdesign.GlifLayout>