OSDN Git Service

Tweak enrollment intro layout
[android-x86/packages-apps-Settings.git] / res / layout / face_enroll_introduction.xml
1 <?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: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         <Space
49             android:layout_width="0dp"
50             android:layout_height="0dp"
51             android:layout_weight="1"/>
52
53         <FrameLayout
54             android:layout_width="match_parent"
55             android:layout_height="wrap_content">
56
57             <com.google.android.setupdesign.view.IllustrationVideoView
58                 android:id="@+id/illustration_normal"
59                 style="@style/SudContentIllustration"
60                 android:layout_width="240dp"
61                 android:layout_height="240dp"
62                 app:sudVideo="@raw/face_enroll_introduction_animation" />
63
64             <ImageView
65                 android:id="@+id/illustration_accessibility"
66                 android:layout_width="wrap_content"
67                 android:layout_height="wrap_content"
68                 android:layout_gravity="center"
69                 android:visibility="invisible"
70                 android:background="@drawable/face_enroll_introduction" />
71
72         </FrameLayout>
73
74         <Space
75             android:layout_width="0dp"
76             android:layout_height="0dp"
77             android:layout_weight="1"/>
78
79         <!-- Contains the buttons and extra information text at the bottom -->
80         <LinearLayout
81             android:layout_width="match_parent"
82             android:layout_height="wrap_content"
83             android:orientation="vertical"
84             android:layout_gravity="center_horizontal|bottom"
85             android:layout_marginTop="24dp">
86
87             <FrameLayout
88                 android:layout_width="match_parent"
89                 android:layout_height="wrap_content">
90                 <Button
91                     android:id="@+id/accessibility_button"
92                     style="@style/SudGlifButton.Secondary"
93                     android:layout_gravity="center"
94                     android:layout_width="wrap_content"
95                     android:layout_height="wrap_content"
96                     android:text="@string/security_settings_face_enroll_introduction_accessibility" />
97
98                 <com.android.settings.biometrics.face.FaceEnrollAccessibilityToggle
99                     android:id="@+id/toggle_diversity"
100                     android:layout_width="match_parent"
101                     android:layout_height="wrap_content"
102                     android:visibility="invisible"
103                     FaceEnrollAccessibilitySwitch:messageText="@string/security_settings_face_enroll_introduction_accessibility_diversity"/>
104
105             </FrameLayout>
106
107             <LinearLayout
108                 android:id="@+id/footer_layout"
109                 android:layout_width="match_parent"
110                 android:layout_height="wrap_content"
111                 android:orientation="horizontal"
112                 android:paddingStart="16dp"
113                 android:paddingEnd="16dp">
114
115                 <ImageView
116                     android:layout_width="wrap_content"
117                     android:layout_height="wrap_content"
118                     android:background="@drawable/ic_face_enroll_introduction_detail">
119                 </ImageView>
120                 <Space
121                     android:layout_width="8dp"
122                     android:layout_height="wrap_content" />
123                 <TextView
124                     android:layout_width="match_parent"
125                     android:layout_height="wrap_content"
126                     android:text="@string/security_settings_face_enroll_introduction_footer_message"/>
127             </LinearLayout>
128
129         </LinearLayout>
130
131     </LinearLayout>
132
133 </com.google.android.setupdesign.GlifLayout>