1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2021 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<FrameLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:id="@+id/root_view"
23    android:background="@color/all_set_page_background" >
24
25    <androidx.constraintlayout.widget.ConstraintLayout
26        android:layout_width="match_parent"
27        android:layout_height="match_parent"
28        android:id="@+id/content_view"
29        android:fitsSystemWindows="true">
30
31        <com.airbnb.lottie.LottieAnimationView
32            android:id="@+id/animated_background"
33            android:layout_width="match_parent"
34            android:layout_height="match_parent"
35            android:gravity="center"
36            android:scaleType="centerCrop"
37
38            app:lottie_rawRes="@raw/all_set_page_bg"
39            app:lottie_autoPlay="true"
40            app:lottie_loop="true" />
41
42        <androidx.constraintlayout.widget.ConstraintLayout
43            android:layout_width="match_parent"
44            android:layout_height="match_parent"
45            android:layout_marginStart="@dimen/allset_page_margin_horizontal"
46            android:layout_marginEnd="@dimen/allset_page_margin_horizontal"
47            android:layoutDirection="locale"
48            android:textDirection="locale"
49            android:forceHasOverlappingRendering="false"
50            android:fitsSystemWindows="true" >
51
52            <ImageView
53                android:id="@+id/icon"
54                android:layout_width="wrap_content"
55                android:layout_height="wrap_content"
56                android:layout_marginTop="@dimen/allset_title_icon_margin_top"
57                app:layout_constraintTop_toTopOf="parent"
58                app:layout_constraintStart_toStartOf="parent"
59                android:src="@drawable/ic_all_set"/>
60
61            <TextView
62                android:id="@+id/title"
63                style="@style/TextAppearance.GestureTutorial.Feedback.Title"
64                android:layout_width="match_parent"
65                android:layout_height="wrap_content"
66                android:layout_marginTop="@dimen/allset_title_margin_top"
67                app:layout_constraintTop_toBottomOf="@id/icon"
68                app:layout_constraintStart_toStartOf="parent"
69                android:gravity="start"
70                android:text="@string/allset_title"/>
71
72            <TextView
73                android:id="@+id/subtitle"
74                style="@style/TextAppearance.GestureTutorial.Feedback.Subtitle"
75                android:layout_width="0dp"
76                android:layout_height="wrap_content"
77                android:layout_marginTop="@dimen/allset_subtitle_margin_top"
78                app:layout_constraintTop_toBottomOf="@id/title"
79                app:layout_constraintStart_toStartOf="parent"
80                app:layout_constraintWidth_max="@dimen/allset_subtitle_width_max"
81                android:gravity="start"
82                android:text="@string/allset_description"/>
83
84            <androidx.constraintlayout.widget.Guideline
85                android:id="@+id/navigation_settings_guideline_bottom"
86                android:layout_width="wrap_content"
87                android:layout_height="wrap_content"
88                android:orientation="horizontal"
89                app:layout_constraintGuide_percent="0.83" />
90
91            <TextView
92                android:id="@+id/navigation_settings"
93                style="@style/TextAppearance.GestureTutorial.LinkText"
94                android:layout_width="wrap_content"
95                android:layout_height="wrap_content"
96                app:layout_constraintStart_toStartOf="parent"
97                app:layout_constraintEnd_toEndOf="parent"
98                app:layout_constraintBottom_toBottomOf="@id/navigation_settings_guideline_bottom"
99                android:minHeight="48dp"
100                android:background="?android:attr/selectableItemBackground"
101                android:text="@string/allset_navigation_settings" />
102
103            <androidx.constraintlayout.widget.Guideline
104                android:id="@+id/hint_guideline_bottom"
105                android:layout_width="wrap_content"
106                android:layout_height="wrap_content"
107                android:orientation="horizontal"
108                app:layout_constraintGuide_percent="0.94" />
109
110            <TextView
111                android:id="@+id/hint"
112                style="@style/TextAppearance.GestureTutorial.Feedback.Subtitle"
113                android:textSize="14sp"
114                android:layout_width="wrap_content"
115                android:layout_height="wrap_content"
116                app:layout_constraintStart_toStartOf="parent"
117                app:layout_constraintEnd_toEndOf="parent"
118                app:layout_constraintBottom_toBottomOf="@id/hint_guideline_bottom"
119                android:text="@string/allset_hint"/>
120        </androidx.constraintlayout.widget.ConstraintLayout>
121
122    </androidx.constraintlayout.widget.ConstraintLayout>
123
124</FrameLayout>