1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2019 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:layout_width="match_parent"
22    android:layout_height="match_parent">
23
24    <androidx.core.widget.NestedScrollView
25        android:id="@+id/main_content_scrollable_container"
26        android:layout_width="match_parent"
27        android:layout_height="match_parent"
28        android:importantForAccessibility="no"
29        app:layout_behavior="com.android.car.developeroptions.widget.FloatingAppBarScrollingViewBehavior">
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            android:descendantFocusability="blocksDescendants">
37
38            <FrameLayout
39                android:id="@+id/contextual_cards_content"
40                android:layout_width="match_parent"
41                android:layout_height="wrap_content"
42                android:layout_marginStart="@dimen/contextual_card_side_margin"
43                android:layout_marginEnd="@dimen/contextual_card_side_margin"/>
44
45            <FrameLayout
46                android:id="@+id/main_content"
47                android:layout_width="match_parent"
48                android:layout_height="wrap_content"
49                android:animateLayoutChanges="true"/>
50
51        </LinearLayout>
52    </androidx.core.widget.NestedScrollView>
53
54    <com.google.android.material.appbar.AppBarLayout
55        android:layout_width="match_parent"
56        android:layout_height="wrap_content">
57
58        <Space
59            android:layout_width="match_parent"
60            android:layout_height="@*android:dimen/status_bar_height"
61            android:background="@android:color/transparent"
62            app:layout_scrollFlags="scroll|enterAlways"/>
63
64        <include layout="@layout/search_bar"/>
65    </com.google.android.material.appbar.AppBarLayout>
66</androidx.coordinatorlayout.widget.CoordinatorLayout>
67