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.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
17    xmlns:tools="http://schemas.android.com/tools"
18    android:id="@+id/main_activity"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:orientation="vertical" >
22    <androidx.core.widget.NestedScrollView
23        android:layout_width="match_parent"
24        android:layout_height="match_parent"
25        android:scrollbars="vertical"
26        android:focusableInTouchMode="true">
27        <LinearLayout
28            android:layout_width="match_parent"
29            android:layout_height="wrap_content"
30            android:orientation="vertical">
31            <LinearLayout
32                android:layout_width="match_parent"
33                android:layout_height="wrap_content"
34                android:paddingStart="@dimen/adservices_content_horizontal_padding"
35                android:paddingEnd="@dimen/adservices_content_horizontal_padding"
36                android:orientation="vertical">
37                <ImageView
38                    android:id="@+id/main_view_ga_pic"
39                    android:layout_width="match_parent"
40                    android:layout_height="wrap_content"
41                    android:layout_marginTop="@dimen/main_view_pic_margin"
42                    android:src="@drawable/ic_main_view_ga_image"
43                    android:contentDescription="@string/ic_main_view_ga_image_description"/>
44            </LinearLayout>
45
46            <LinearLayout
47                android:id="@+id/privacy_sandbox_controls"
48                android:layout_width="match_parent"
49                android:layout_height="wrap_content"
50                android:orientation="vertical" >
51                <LinearLayout
52                    android:id="@+id/topics_preference"
53                    android:focusable="true"
54                    style="@style/PreferenceStyle"
55                    >
56                    <TextView
57                        android:id="@+id/topics_preference_title"
58                        android:text="@string/settingsUI_topics_title"
59                        android:layout_marginTop="0dp"
60                        style="@style/MainStyle.H5" />
61                    <TextView
62                        android:id="@+id/topics_preference_subtitle"
63                        android:visibility="gone"
64                        style="@style/MainStyle.Subtitle" />
65                </LinearLayout>
66
67                <LinearLayout
68                    android:id="@+id/apps_preference"
69                    android:focusable="true"
70                    style="@style/PreferenceStyle"
71                    >
72                    <TextView
73                        android:id="@+id/apps_preference_title"
74                        android:text="@string/settingsUI_apps_title"
75                        android:layout_marginTop="0dp"
76                        style="@style/MainStyle.H5" />
77                    <TextView
78                        android:id="@+id/apps_preference_subtitle"
79                        android:visibility="gone"
80                        style="@style/MainStyle.Subtitle" />
81                </LinearLayout>
82
83                <LinearLayout
84                    android:id="@+id/measurement_preference"
85                    style="@style/PreferenceStyle"
86                    android:focusable="true"
87                    android:visibility="gone"
88                    >
89                    <TextView
90                        android:id="@+id/measurement_preference_title"
91                        android:text="@string/settingsUI_measurement_view_title"
92                        android:layout_marginTop="0dp"
93                        style="@style/MainStyle.H5" />
94                    <TextView
95                        android:id="@+id/measurement_preference_subtitle"
96                        style="@style/MainStyle.Subtitle" />
97                </LinearLayout>
98
99            </LinearLayout>
100
101            <LinearLayout
102                android:id="@+id/main_view_ga_footer"
103                android:layout_width="match_parent"
104                android:layout_height="wrap_content"
105                android:paddingHorizontal="@dimen/adservices_content_horizontal_padding"
106                android:paddingBottom="@dimen/adservices_content_2x_padding"
107                android:orientation="vertical"
108                android:focusable="false">
109                <ImageView
110                    android:layout_width="wrap_content"
111                    android:layout_height="wrap_content"
112                    android:layout_marginTop="@dimen/adservices_content_two_thirds_padding"
113                    android:src="@drawable/ic_info_icon"
114                    tools:ignore="ContentDescription" />
115                <TextView
116                    android:layout_marginStart="0dp"
117                    android:text="@string/settingsUI_topics_ga_title"
118                    style="@style/MainStyle.Body2BoldBullet" />
119                <TextView
120                    android:text="@string/settingsUI_main_view_ad_topics_info"
121                    style="@style/MainStyle.Body2" />
122                <TextView
123                    android:layout_marginStart="0dp"
124                    android:text="@string/settingsUI_apps_ga_title"
125                    style="@style/MainStyle.Body2BoldBullet" />
126                <TextView
127                    android:text="@string/settingsUI_main_view_apps_info"
128                    style="@style/MainStyle.Body2" />
129                <TextView
130                    android:text="@string/settingsUI_measurement_ga_title"
131                    android:layout_marginStart="0dp"
132                    style="@style/MainStyle.Body2BoldBullet" />
133                <TextView
134                    android:text="@string/settingsU_main_view_measurement_info"
135                    style="@style/MainStyle.Body2" />
136                <TextView
137                    android:id="@+id/main_view_ga_footer_learn_more"
138                    android:text="@string/settingsU_main_view_learn_more"
139                   android:paddingTop="@dimen/adservices_content_one_thirds_padding"
140                    style="@style/MainStyle.Body2" />
141
142            </LinearLayout>
143        </LinearLayout>
144    </androidx.core.widget.NestedScrollView>
145</androidx.appcompat.widget.LinearLayoutCompat>
146