]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/activity_templates.xml
a60a650f0779027b0c07dfefd5c832766bcddd50
[mobile-ledger.git] / app / src / main / res / layout / activity_templates.xml
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.
8   ~
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.
13   ~
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/>.
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     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"
24     >
25
26     <com.google.android.material.appbar.AppBarLayout
27         android:id="@+id/appbar"
28         android:layout_width="match_parent"
29         android:layout_height="@dimen/toolbar_height"
30         android:fitsSystemWindows="true"
31         android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
32         >
33         <androidx.appcompat.widget.Toolbar
34             android:id="@+id/toolbar"
35             android:layout_width="match_parent"
36             android:layout_height="match_parent"
37             app:layout_collapseMode="pin"
38             app:popupTheme="@style/ThemeOverlay.AppCompat.DayNight"
39             />
40     </com.google.android.material.appbar.AppBarLayout>
41
42     <androidx.core.widget.NestedScrollView
43         android:layout_width="match_parent"
44         android:layout_height="match_parent"
45         app:layout_behavior="@string/appbar_scrolling_view_behavior"
46         >
47         <androidx.fragment.app.FragmentContainerView
48             android:id="@+id/fragment_container"
49             android:name="androidx.navigation.fragment.NavHostFragment"
50             android:layout_width="match_parent"
51             android:layout_height="match_parent"
52             app:defaultNavHost="true"
53             app:navGraph="@navigation/template_list_navigation"
54             />
55     </androidx.core.widget.NestedScrollView>
56
57     <com.google.android.material.floatingactionbutton.FloatingActionButton
58         android:id="@+id/fab"
59         android:layout_width="wrap_content"
60         android:layout_height="wrap_content"
61         android:layout_gravity="bottom|end"
62         android:layout_margin="@dimen/fab_margin"
63         android:contentDescription="@string/add_button_description"
64         app:srcCompat="@drawable/ic_add_white_24dp"
65         />
66
67 </androidx.coordinatorlayout.widget.CoordinatorLayout>