1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright  2019 Google LLC
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  ~     https://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<layout>
19
20<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
21    xmlns:app="http://schemas.android.com/apk/res-auto"
22    android:layout_width="match_parent"
23    android:layout_height="match_parent">
24
25    <com.google.android.material.appbar.AppBarLayout
26        android:id="@+id/appBar"
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:theme="@style/ThemeOverlay.AppCompat.ActionBar">
30
31        <androidx.appcompat.widget.Toolbar
32            android:id="@+id/toolbar"
33            android:layout_width="match_parent"
34            android:layout_height="wrap_content"
35            android:background="?attr/colorPrimary"
36            android:minHeight="?attr/actionBarSize"
37            app:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
38            app:popupTheme="@style/ThemeOverlay.MaterialComponents.Light"
39            app:layout_constraintStart_toStartOf="parent"
40            app:layout_constraintTop_toTopOf="parent" />
41
42    </com.google.android.material.appbar.AppBarLayout>
43
44
45    <!-- Main content -->
46    <androidx.recyclerview.widget.RecyclerView
47        android:id="@+id/effect_list_view"
48        android:layout_width="match_parent"
49        android:layout_height="match_parent"
50        android:scrollbars="vertical"
51        app:layout_behavior="@string/appbar_scrolling_view_behavior"
52        app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
53
54    <com.google.android.material.floatingactionbutton.FloatingActionButton
55        android:id="@+id/floating_add_button"
56        android:layout_width="wrap_content"
57        android:layout_height="wrap_content"
58        android:layout_gravity="bottom|right"
59        android:layout_margin="16dp"
60        app:srcCompat="@drawable/ic_add" />
61
62</androidx.coordinatorlayout.widget.CoordinatorLayout>
63</layout>
64