• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?><!--
2  Copyright (C) 2025 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    android:id="@+id/onboarding"
18    android:layout_width="match_parent"
19    android:layout_height="match_parent"
20    android:orientation="vertical">
21
22    <androidx.core.widget.NestedScrollView
23        android:id="@+id/scroll_view"
24        android:paddingHorizontal="@dimen/spacing_large"
25        android:layout_width="match_parent"
26        android:layout_height="0dp"
27        android:layout_weight="1">
28
29        <LinearLayout
30            android:id="@+id/onboarding_content_layout"
31            android:layout_width="match_parent"
32            android:layout_height="wrap_content"
33            android:orientation="vertical">
34
35            <TextView
36                android:id="@+id/onboarding_title"
37                android:layout_width="match_parent"
38                android:layout_height="wrap_content"
39                android:layout_marginTop="@dimen/spacing_page_title"
40                android:text="@string/onboarding_title"
41                android:hyphenationFrequency="normal"
42                android:textAppearance="?attr/textAppearanceHeadline2" />
43
44            <TextView
45                android:id="@+id/onboarding_description"
46                android:layout_width="match_parent"
47                android:layout_height="wrap_content"
48                android:layout_marginTop="@dimen/spacing_normal"
49                android:layout_marginBottom="@dimen/spacing_xlarge"
50                android:text="@string/onboarding_description"
51                android:textAppearance="?attr/textAppearanceSummaryLarge" />
52
53            <ImageView
54                android:id="@+id/onboarding_image"
55                android:layout_width="match_parent"
56                android:layout_height="wrap_content"
57                android:layout_gravity="center_horizontal"
58                android:importantForAccessibility="no"
59                android:src="@drawable/ic_onboarding"
60                android:layout_marginBottom="@dimen/spacing_xlarge"
61                android:scaleType="centerInside" />
62
63            <TextView
64                android:id="@+id/onboarding_description_with_health_connect"
65                android:layout_width="match_parent"
66                android:layout_height="wrap_content"
67                android:layout_marginBottom="@dimen/spacing_normal"
68                android:text="@string/onboarding_description_with_health_connect"
69                android:textAppearance="?attr/textAppearanceLabel"
70                android:textColor="?android:attr/colorAccent"/>
71
72            <TextView
73                android:id="@+id/share_text"
74                android:text="@string/share_data_text"
75                android:layout_width="wrap_content"
76                android:layout_height="wrap_content"
77                android:drawableStart="?attr/syncIcon"
78                android:drawablePadding="@dimen/spacing_normal"
79                android:layout_marginBottom="@dimen/spacing_normal"
80                android:textAppearance="?attr/textAppearanceSummaryLarge" />
81
82            <TextView
83                android:id="@+id/manage_text"
84                android:text="@string/manage_your_settings_text"
85                android:layout_width="wrap_content"
86                android:layout_height="wrap_content"
87                android:drawableStart="?attr/manageSettingsIcon"
88                android:drawablePadding="@dimen/spacing_normal"
89                android:textAppearance="?attr/textAppearanceSummaryLarge" />
90
91        </LinearLayout>
92    </androidx.core.widget.NestedScrollView>
93
94    <FrameLayout
95        android:id="@+id/button_area"
96        android:layout_width="match_parent"
97        android:layout_height="wrap_content"/>
98</LinearLayout>