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<androidx.constraintlayout.widget.ConstraintLayout
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:fitsSystemWindows="false"
24    android:background="@color/all_set_page_background">
25
26    <com.airbnb.lottie.LottieAnimationView
27        android:id="@+id/animated_background"
28        android:layout_width="match_parent"
29        android:layout_height="match_parent"
30        android:gravity="center"
31        android:scaleType="centerCrop"
32        app:lottie_autoPlay="true"
33        app:lottie_loop="true"
34
35        app:layout_constraintTop_toTopOf="parent"
36        app:layout_constraintBottom_toBottomOf="parent"
37        app:layout_constraintStart_toStartOf="parent"
38        app:layout_constraintEnd_toEndOf="parent"/>
39
40    <ScrollView
41        android:layout_width="match_parent"
42        android:layout_height="match_parent"
43        android:fillViewport="true"
44        android:fitsSystemWindows="true"
45
46        app:layout_constraintTop_toTopOf="parent"
47        app:layout_constraintBottom_toBottomOf="parent"
48        app:layout_constraintStart_toStartOf="parent"
49        app:layout_constraintEnd_toEndOf="parent">
50
51        <androidx.constraintlayout.widget.ConstraintLayout
52            android:id="@+id/text_content_view"
53            android:layout_width="match_parent"
54            android:layout_height="wrap_content"
55            android:layout_marginStart="@dimen/allset_page_margin_horizontal"
56            android:layout_marginEnd="@dimen/allset_page_margin_horizontal"
57            android:layoutDirection="locale"
58            android:textDirection="locale"
59            android:forceHasOverlappingRendering="false"
60            android:fitsSystemWindows="true" >
61
62            <ImageView
63                android:id="@+id/icon"
64                android:layout_width="wrap_content"
65                android:layout_height="wrap_content"
66                android:layout_marginTop="@dimen/allset_title_icon_margin_top"
67                app:layout_constraintTop_toTopOf="parent"
68                app:layout_constraintStart_toStartOf="parent"
69                android:src="@drawable/ic_all_set"/>
70
71            <TextView
72                android:id="@+id/title"
73                style="@style/TextAppearance.GestureTutorial.Feedback.Title.AllSet"
74                android:layout_width="match_parent"
75                android:layout_height="wrap_content"
76                android:layout_marginTop="@dimen/allset_title_margin_top"
77                app:layout_constraintTop_toBottomOf="@id/icon"
78                app:layout_constraintStart_toStartOf="parent"
79                android:gravity="start"
80                android:text="@string/allset_title"/>
81
82            <TextView
83                android:id="@+id/subtitle"
84                style="@style/TextAppearance.GestureTutorial.Feedback.Subtitle.AllSet"
85                android:layout_width="match_parent"
86                android:layout_height="wrap_content"
87                android:layout_marginTop="@dimen/allset_subtitle_margin_top"
88                app:layout_constraintTop_toBottomOf="@id/title"
89                app:layout_constraintStart_toStartOf="parent"
90                android:gravity="start"/>
91
92            <include layout="@layout/allset_navigation"/>
93
94            <TextView
95                android:id="@+id/hint"
96                style="@style/TextAppearance.GestureTutorial.Feedback.Subtitle"
97                android:layout_width="wrap_content"
98                android:layout_height="wrap_content"
99                android:text="@string/allset_hint"
100                android:textSize="@dimen/allset_page_swipe_up_text_size"
101                android:gravity="center_horizontal"
102
103                app:layout_constraintBottom_toBottomOf="parent"
104                app:layout_constraintEnd_toEndOf="parent"
105                app:layout_constraintStart_toStartOf="parent" />
106
107        </androidx.constraintlayout.widget.ConstraintLayout>
108
109    </ScrollView>
110
111</androidx.constraintlayout.widget.ConstraintLayout>