1 <?xml version="1.0" encoding="utf-8"?><!--
2 ~ Copyright © 2021 Damyan Ivanov.
3 ~ This file is part of MoLe.
4 ~ MoLe is free software: you can distribute it and/or modify it
5 ~ under the term of the GNU General Public License as published by
6 ~ the Free Software Foundation, either version 3 of the License, or
7 ~ (at your opinion), any later version.
9 ~ MoLe is distributed in the hope that it will be useful,
10 ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ~ GNU General Public License terms for details.
14 ~ You should have received a copy of the GNU General Public License
15 ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
18 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:app="http://schemas.android.com/apk/res-auto"
20 xmlns:tools="http://schemas.android.com/tools"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent"
23 tools:context=".ui.templates.TemplatesActivity"
26 <com.google.android.material.appbar.AppBarLayout
27 android:id="@+id/appbar"
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
30 android:fitsSystemWindows="true"
31 android:theme="@style/AppTheme.AppBarOverlay"
32 app:layout_constraintStart_toStartOf="parent"
33 app:layout_constraintTop_toTopOf="parent"
35 <androidx.appcompat.widget.Toolbar
36 android:id="@+id/toolbar"
37 android:layout_width="match_parent"
38 android:layout_height="match_parent"
39 android:background="?attr/colorPrimary"
40 app:layout_collapseMode="pin"
41 app:popupTheme="@style/AppTheme.PopupOverlay"
43 </com.google.android.material.appbar.AppBarLayout>
45 <androidx.fragment.app.FragmentContainerView
46 android:id="@+id/fragment_container"
47 android:name="androidx.navigation.fragment.NavHostFragment"
48 android:layout_width="match_parent"
49 android:layout_height="0dp"
50 app:defaultNavHost="true"
51 app:layout_constraintBottom_toBottomOf="parent"
52 app:layout_constraintStart_toStartOf="parent"
53 app:layout_constraintTop_toBottomOf="@id/appbar"
54 app:navGraph="@navigation/template_list_navigation"
57 <com.google.android.material.floatingactionbutton.FloatingActionButton
59 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"
61 android:layout_margin="@dimen/fab_margin"
62 android:contentDescription="@string/add_button_description"
63 app:layout_constraintBottom_toBottomOf="parent"
64 app:layout_constraintEnd_toEndOf="parent"
65 app:srcCompat="@drawable/ic_add_white_24dp"
68 </androidx.constraintlayout.widget.ConstraintLayout>