]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/app_bar_account_summary.xml
major refactor, make account summary and transaction list fragments, part of the...
[mobile-ledger.git] / app / src / main / res / layout / app_bar_account_summary.xml
1 <?xml version="1.0" encoding="utf-8"?><!--
2   ~ Copyright © 2018 Damyan Ivanov.
3   ~ This file is part of Mobile-Ledger.
4   ~ Mobile-Ledger 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   ~ Mobile-Ledger 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 Mobile-Ledger. If not, see <https://www.gnu.org/licenses/>.
16   -->
17
18 <android.support.design.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.activity.MainActivity">
24
25     <android.support.design.widget.AppBarLayout
26         android:layout_width="match_parent"
27         android:layout_height="wrap_content"
28         android:theme="@style/AppTheme.AppBarOverlay">
29
30         <android.support.v7.widget.Toolbar
31             android:id="@+id/toolbar"
32             android:layout_width="match_parent"
33             android:layout_height="?attr/actionBarSize"
34             android:background="?attr/colorPrimary"
35             app:popupTheme="@style/AppTheme.PopupOverlay" />
36
37     </android.support.design.widget.AppBarLayout>
38
39     <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
40         xmlns:tools="http://schemas.android.com/tools"
41         android:id="@+id/root_frame"
42         android:layout_width="match_parent"
43         android:layout_height="match_parent"
44         android:layout_marginTop="?attr/actionBarSize"
45         tools:context=".ui.account_summary.AccountSummaryFragment"></FrameLayout>
46
47     <android.support.design.widget.FloatingActionButton
48         android:id="@+id/btn_add_transaction"
49         android:layout_width="wrap_content"
50         android:layout_height="wrap_content"
51         android:layout_gravity="bottom|end"
52         android:layout_margin="@dimen/fab_margin"
53         android:onClick="fab_new_transaction_clicked"
54         app:backgroundTint="@color/colorPrimary"
55         app:srcCompat="@drawable/svg_thick_plus_white" />
56
57 </android.support.design.widget.CoordinatorLayout>