1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2022 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    android:id="@+id/setup_wizard_layout"
22    android:layout_width="match_parent"
23    android:layout_height="match_parent"
24    style="?attr/fingerprint_layout_theme">
25
26    <LinearLayout
27        style="@style/SudContentFrame"
28        android:layout_width="match_parent"
29        android:layout_height="match_parent"
30        android:orientation="vertical"
31        android:clipToPadding="false"
32        android:clipChildren="false">
33
34        <RelativeLayout
35            android:id="@+id/progress_lottie"
36            android:layout_width="match_parent"
37            android:layout_height="0dp"
38            android:layout_weight="1"
39            android:gravity="center"
40            android:orientation="vertical"
41            android:translationX="0dp">
42
43            <!-- Animation res MUST be set in code -->
44            <com.airbnb.lottie.LottieAnimationView
45                android:id="@+id/illustration_lottie"
46                android:layout_width="@dimen/fingerprint_progress_bar_max_size"
47                android:layout_height="@dimen/fingerprint_progress_bar_max_size"
48                android:layout_marginEnd="@dimen/sfps_lottie_translate_x"
49                android:layout_marginBottom="@dimen/sfps_lottie_translate_y"
50                android:scaleType="centerInside"
51                android:visibility="gone"
52                app:lottie_autoPlay="true"
53                app:lottie_loop="true"
54                android:clipChildren="false"
55                android:clipToPadding="false"
56                app:lottie_speed=".85" />
57
58            <com.google.android.setupdesign.view.FillContentLayout
59                android:layout_width="@dimen/fingerprint_progress_bar_max_size"
60                android:layout_height="@dimen/fingerprint_progress_bar_max_size"
61                android:paddingTop="0dp"
62                android:paddingBottom="0dp">
63
64                <com.android.settings.widget.RingProgressBar
65                    xmlns:android="http://schemas.android.com/apk/res/android"
66                    android:id="@+id/fingerprint_progress_bar"
67                    android:layout_width="match_parent"
68                    android:layout_height="match_parent"
69                    android:layout_marginStart="@dimen/sfps_progress_bar_translate_x"
70                    android:layout_marginTop="@dimen/sfps_progress_bar_translate_y"
71                    android:layout_gravity="center"
72                    android:minHeight="@dimen/fingerprint_progress_bar_min_size"
73                    android:progressBackgroundTint="@color/sfps_enrollment_progress_bar_bg_color"
74                    android:progress="0" />
75            </com.google.android.setupdesign.view.FillContentLayout>
76
77            <TextView
78                style="@style/TextAppearance.ErrorText"
79                android:id="@+id/error_text"
80                android:layout_width="wrap_content"
81                android:layout_height="wrap_content"
82                android:layout_gravity="center_horizontal|bottom"
83                android:accessibilityLiveRegion="polite"
84                android:gravity="center"
85                android:visibility="invisible"/>
86
87        </RelativeLayout>
88
89    </LinearLayout>
90
91</com.google.android.setupdesign.GlifLayout>
92