1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2024 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
18<androidx.coordinatorlayout.widget.CoordinatorLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:app="http://schemas.android.com/apk/res-auto"
21    android:id="@+id/settings_homepage_container"
22    android:layout_width="match_parent"
23    android:layout_height="match_parent">
24
25    <androidx.core.widget.NestedScrollView
26        android:id="@+id/main_content_scrollable_container"
27        android:layout_width="match_parent"
28        android:layout_height="match_parent"
29        app:layout_behavior="com.android.settings.widget.HomepageAppBarScrollingViewBehavior">
30
31        <LinearLayout
32            android:id="@+id/homepage_container"
33            android:layout_width="match_parent"
34            android:layout_height="wrap_content"
35            android:orientation="vertical">
36
37            <FrameLayout
38                android:id="@+id/suggestion_content"
39                android:layout_width="match_parent"
40                android:layout_height="wrap_content"
41                android:layout_marginStart="?android:attr/listPreferredItemPaddingStart"
42                android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd" />
43
44            <FrameLayout
45                android:id="@+id/contextual_cards_content"
46                android:layout_width="match_parent"
47                android:layout_height="wrap_content"
48                android:layout_marginStart="@dimen/contextual_card_side_margin"
49                android:layout_marginEnd="@dimen/contextual_card_side_margin"/>
50
51            <FrameLayout
52                android:id="@+id/main_content"
53                android:layout_width="match_parent"
54                android:layout_height="wrap_content"
55                android:animateLayoutChanges="true"/>
56
57        </LinearLayout>
58    </androidx.core.widget.NestedScrollView>
59
60    <com.google.android.material.appbar.AppBarLayout
61        android:id="@+id/app_bar"
62        android:layout_width="match_parent"
63        android:layout_height="wrap_content"
64        app:elevation="0dp"
65        android:touchscreenBlocksFocus="false"
66        android:keyboardNavigationCluster="false">
67        <LinearLayout
68            android:id="@+id/app_bar_container"
69            android:layout_width="match_parent"
70            android:layout_height="wrap_content"
71            android:orientation="horizontal"
72            android:paddingTop="8dp"
73            android:paddingBottom="16dp"
74            android:paddingStart="?android:attr/listPreferredItemPaddingStart"
75            android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
76
77            <include layout="@layout/search_bar_unified_version"/>
78
79        </LinearLayout>
80    </com.google.android.material.appbar.AppBarLayout>
81</androidx.coordinatorlayout.widget.CoordinatorLayout>
82