]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/activity_templates.xml
use default toolbar height for the templates activity
[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="wrap_content"
30         android:fitsSystemWindows="true"
31         android:theme="@style/AppTheme.AppBarOverlay"
32         >
33         <androidx.appcompat.widget.Toolbar
34             android:id="@+id/toolbar"
35             android:layout_width="match_parent"
36             android:layout_height="match_parent"
37             android:background="?attr/colorPrimary"
38             app:layout_collapseMode="pin"
39             app:popupTheme="@style/AppTheme.PopupOverlay"
40             />
41     </com.google.android.material.appbar.AppBarLayout>
42
43     <androidx.core.widget.NestedScrollView
44         android:layout_width="match_parent"
45         android:layout_height="match_parent"
46         app:layout_behavior="@string/appbar_scrolling_view_behavior"
47         >
48         <androidx.fragment.app.FragmentContainerView
49             android:id="@+id/fragment_container"
50             android:name="androidx.navigation.fragment.NavHostFragment"
51             android:layout_width="match_parent"
52             android:layout_height="match_parent"
53             app:defaultNavHost="true"
54             app:navGraph="@navigation/template_list_navigation"
55             />
56     </androidx.core.widget.NestedScrollView>
57
58     <com.google.android.material.floatingactionbutton.FloatingActionButton
59         android:id="@+id/fab"
60         android:layout_width="wrap_content"
61         android:layout_height="wrap_content"
62         android:layout_gravity="bottom|end"
63         android:layout_margin="@dimen/fab_margin"
64         android:contentDescription="@string/add_button_description"
65         app:srcCompat="@drawable/ic_add_white_24dp"
66         />
67
68 </androidx.coordinatorlayout.widget.CoordinatorLayout>