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    android:id="@+id/setup_wizard_layout"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:layout="@layout/sud_glif_blank_template"
24    style="?attr/fingerprint_layout_theme">
25
26    <ScrollView
27        android:layout_width="match_parent"
28        android:layout_height="match_parent"
29        android:fillViewport="true">
30        <LinearLayout
31            style="@style/SudContentFrame"
32            android:layout_width="match_parent"
33            android:layout_height="match_parent"
34            android:orientation="horizontal"
35            android:clipToPadding="false"
36            android:clipChildren="false"
37            android:paddingBottom="0dp">
38
39            <!-- Both texts are kept as separate text views so it doesn't jump around in portrait.
40                 See layouts/fingerprint_enroll_enrolling_base.xml. -->
41            <LinearLayout
42                android:layout_width="0dp"
43                android:layout_weight="1"
44                android:layout_height="match_parent"
45                android:layout_marginStart="?attr/sudMarginSides"
46                android:layout_marginBottom="@dimen/sud_content_frame_padding_bottom"
47                android:clipChildren="false"
48                android:clipToPadding="false"
49                android:orientation="vertical">
50
51                <ImageView
52                    android:id="@+id/sud_layout_icon"
53                    style="@style/SudGlifIcon"
54                    android:layout_width="wrap_content"
55                    android:layout_height="wrap_content"
56                    android:layout_gravity="?attr/sudGlifHeaderGravity"
57                    android:layout_marginStart="0dp"
58                    android:layout_marginEnd="0dp"
59                    android:src="@drawable/ic_fingerprint_header" />
60
61                <TextView
62                    android:id="@+id/suc_layout_title"
63                    style="@style/SudGlifHeaderTitle"
64                    android:layout_width="match_parent"
65                    android:layout_height="wrap_content"
66                    android:layout_marginStart="0dp"
67                    android:layout_marginEnd="0dp" />
68
69                <FrameLayout
70                    android:layout_width="match_parent"
71                    android:layout_height="wrap_content">
72
73                    <TextView
74                        style="@style/SudDescription.Glif"
75                        android:id="@+id/start_message"
76                        android:layout_width="match_parent"
77                        android:layout_height="wrap_content"
78                        android:text="@string/security_settings_fingerprint_enroll_start_message"/>
79
80                    <TextView
81                        style="@style/SudDescription.Glif"
82                        android:id="@+id/repeat_message"
83                        android:layout_width="match_parent"
84                        android:layout_height="wrap_content"
85                        android:text="@string/security_settings_fingerprint_enroll_repeat_message"
86                        android:visibility="invisible"/>
87
88                </FrameLayout>
89
90                <Space
91                    android:layout_width="0dp"
92                    android:layout_height="0dp"
93                    android:layout_weight="1" />
94
95            </LinearLayout>
96
97            <LinearLayout
98                android:layout_width="0dp"
99                android:layout_weight="1"
100                android:layout_height="match_parent"
101                android:gravity="center"
102                android:orientation="vertical">
103
104                <com.google.android.setupdesign.view.FillContentLayout
105                    android:layout_width="wrap_content"
106                    android:layout_height="0dp"
107                    android:layout_marginVertical="24dp"
108                    android:layout_weight="1"
109                    android:paddingTop="0dp"
110                    android:paddingBottom="0dp">
111
112                    <include layout="@layout/fingerprint_enroll_enrolling_content"
113                         android:layout_width="match_parent"
114                         android:layout_height="match_parent"
115                         android:layout_gravity="center" />
116                </com.google.android.setupdesign.view.FillContentLayout>
117
118                <TextView
119                    style="@style/TextAppearance.ErrorText"
120                    android:id="@+id/error_text"
121                    android:layout_width="wrap_content"
122                    android:layout_height="wrap_content"
123                    android:layout_marginBottom="16dp"
124                    android:layout_gravity="center_horizontal|bottom"
125                    android:accessibilityLiveRegion="polite"
126                    android:gravity="center_horizontal"
127                    android:paddingEnd="5dp"
128                    android:paddingStart="5dp"
129                    android:visibility="invisible"/>
130
131            </LinearLayout>
132
133        </LinearLayout>
134    </ScrollView>
135</com.google.android.setupdesign.GlifLayout>
136