1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2015 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  ~ 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 limitations under the
14  ~ License.
15  ~
16  -->
17
18<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:id="@+id/main_content"
21    android:layout_width="match_parent"
22    android:layout_height="fill_parent"
23    android:fitsSystemWindows="true">
24
25    <com.google.android.material.appbar.AppBarLayout
26        android:id="@+id/appbar"
27        android:layout_width="match_parent"
28        android:layout_height="@dimen/detail_backdrop_height"
29        android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
30        android:fitsSystemWindows="true">
31
32        <com.google.android.material.appbar.CollapsingToolbarLayout
33            android:id="@+id/collapsing_toolbar"
34            android:layout_width="match_parent"
35            android:layout_height="match_parent"
36            app:layout_scrollFlags="scroll"
37            android:fitsSystemWindows="true"
38            app:contentScrim="?attr/colorPrimary"
39            app:expandedTitleMarginStart="48dp"
40            app:expandedTitleMarginEnd="64dp">
41
42            <androidx.appcompat.widget.Toolbar
43                android:id="@+id/toolbar"
44                android:layout_width="match_parent"
45                android:layout_height="?attr/actionBarSize"
46                app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
47                app:layout_collapseMode="parallax" />
48
49            <ImageView
50                android:id="@+id/backdrop"
51                android:layout_width="match_parent"
52                android:layout_height="match_parent"
53                android:src="@mipmap/ic_launcher"
54                android:scaleType="centerCrop"
55                android:fitsSystemWindows="true"
56                app:layout_collapseMode="parallax" />
57
58        </com.google.android.material.appbar.CollapsingToolbarLayout>
59
60    </com.google.android.material.appbar.AppBarLayout>
61
62    <androidx.core.widget.NestedScrollView
63        android:layout_width="match_parent"
64        android:layout_height="match_parent"
65        app:layout_behavior="@string/appbar_scrolling_view_behavior">
66
67        <LinearLayout
68            android:layout_width="match_parent"
69            android:layout_height="match_parent"
70            android:orientation="vertical" >
71
72            <ExpandableListView
73                android:id="@+id/test_list"
74                android:layout_width="match_parent"
75                android:layout_height="match_parent" />
76
77        </LinearLayout>
78
79    </androidx.core.widget.NestedScrollView>
80
81    <com.google.android.material.floatingactionbutton.FloatingActionButton
82        android:id="@+id/start_button"
83        android:layout_height="wrap_content"
84        android:layout_width="wrap_content"
85        android:src="@drawable/ic_play"
86        app:layout_anchor="@id/appbar"
87        app:layout_anchorGravity="bottom|right|end"
88        android:layout_margin="@dimen/fab_margin"
89        android:clickable="true"/>
90
91</androidx.coordinatorlayout.widget.CoordinatorLayout>
92