1<?xml version="1.0" encoding="utf-8"?><!--
2  Copyright (C) 2022 The Android Open Source Project
3
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7
8       http://www.apache.org/licenses/LICENSE-2.0
9
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15-->
16<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
17    android:id="@+id/scroll_view"
18    android:paddingHorizontal="@dimen/spacing_large"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent">
21
22    <LinearLayout
23        android:id="@+id/onboarding_content_layout"
24        android:layout_width="match_parent"
25        android:layout_height="wrap_content"
26        android:orientation="vertical">
27
28        <TextView
29            android:id="@+id/onboarding_title"
30            android:layout_width="match_parent"
31            android:layout_height="wrap_content"
32            android:layout_marginTop="@dimen/spacing_page_title"
33            android:text="@string/onboarding_title"
34            android:hyphenationFrequency="normal"
35            android:textAppearance="?attr/textAppearanceHeadline2" />
36
37        <TextView
38            android:id="@+id/onboarding_description"
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content"
41            android:layout_marginTop="@dimen/spacing_normal"
42            android:layout_marginBottom="@dimen/spacing_xlarge"
43            android:text="@string/onboarding_description"
44            android:textAppearance="?attr/textAppearanceSummaryLarge" />
45
46        <ImageView
47            android:id="@+id/onboarding_image"
48            android:layout_width="match_parent"
49            android:layout_height="wrap_content"
50            android:layout_gravity="center_horizontal"
51            android:importantForAccessibility="no"
52            android:src="@drawable/ic_onboarding"
53            android:layout_marginBottom="@dimen/spacing_xlarge"
54            android:scaleType="centerInside" />
55
56        <LinearLayout
57            android:layout_width="match_parent"
58            android:layout_height="wrap_content"
59            android:gravity="center"
60            android:orientation="horizontal"
61            android:layout_marginBottom="@dimen/spacing_normal">
62
63            <ImageView
64                android:id="@+id/share_icon"
65                android:src="?attr/syncIcon"
66                android:layout_width="wrap_content"
67                android:layout_height="wrap_content"
68                android:layout_marginEnd="@dimen/spacing_normal"
69                android:visibility="visible" />
70
71            <LinearLayout
72                android:layout_width="match_parent"
73                android:layout_height="wrap_content"
74                android:orientation="vertical">
75
76                <TextView
77                    android:id="@+id/share_text"
78                    android:text="@string/share_data"
79                    android:layout_width="wrap_content"
80                    android:layout_height="wrap_content"
81                    android:maxLines="2"
82                    android:textAppearance="?attr/textAppearanceSubheader" />
83
84                <TextView
85                    android:id="@+id/share_description"
86                    android:text="@string/share_data_description"
87                    android:layout_width="wrap_content"
88                    android:layout_height="wrap_content"
89                    android:maxLines="3"
90                    android:textAppearance="?attr/textAppearanceSummaryLarge" />
91            </LinearLayout>
92        </LinearLayout>
93
94        <LinearLayout
95            android:layout_width="match_parent"
96            android:layout_height="wrap_content"
97            android:gravity="center"
98            android:orientation="horizontal">
99
100            <ImageView
101                android:id="@+id/manage_icon"
102                android:src="?attr/manageSettingsIcon"
103                android:layout_width="wrap_content"
104                android:layout_height="wrap_content"
105                android:layout_marginEnd="@dimen/spacing_normal"
106                android:visibility="visible" />
107
108            <LinearLayout
109                android:layout_width="match_parent"
110                android:layout_height="wrap_content"
111                android:orientation="vertical">
112
113                <TextView
114                    android:id="@+id/manage_text"
115                    android:text="@string/manage_your_settings"
116                    android:layout_width="wrap_content"
117                    android:layout_height="wrap_content"
118                    android:maxLines="2"
119                    android:textAppearance="?attr/textAppearanceSubheader" />
120
121                <TextView
122                    android:id="@+id/description"
123                    android:text="@string/manage_your_settings_description"
124                    android:layout_width="wrap_content"
125                    android:layout_height="wrap_content"
126                    android:maxLines="3"
127                    android:textAppearance="?attr/textAppearanceSummaryLarge" />
128            </LinearLayout>
129        </LinearLayout>
130    </LinearLayout>
131</androidx.core.widget.NestedScrollView>
132