]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/drawer.xml
major refactor, make account summary and transaction list fragments, part of the...
[mobile-ledger.git] / app / src / main / res / layout / drawer.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3   ~ Copyright © 2018 Damyan Ivanov.
4   ~ This file is part of Mobile-Ledger.
5   ~ Mobile-Ledger is free software: you can distribute it and/or modify it
6   ~ under the term of the GNU General Public License as published by
7   ~ the Free Software Foundation, either version 3 of the License, or
8   ~ (at your opinion), any later version.
9   ~
10   ~ Mobile-Ledger is distributed in the hope that it will be useful,
11   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
12   ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13   ~ GNU General Public License terms for details.
14   ~
15   ~ You should have received a copy of the GNU General Public License
16   ~ along with Mobile-Ledger. If not, see <https://www.gnu.org/licenses/>.
17   -->
18
19 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
20     android:layout_width="match_parent"
21     android:layout_height="match_parent">
22
23     <ScrollView
24         android:layout_width="match_parent"
25         android:layout_height="match_parent"
26         android:layout_alignParentStart="true"
27         android:layout_alignParentTop="true"
28         android:background="@color/drawer_background">
29
30         <LinearLayout
31             android:layout_width="match_parent"
32             android:layout_height="wrap_content"
33             android:orientation="vertical">
34
35             <include
36                 layout="@layout/nav_header_latest_transactions"
37                 android:layout_width="match_parent"
38                 android:layout_height="wrap_content" />
39
40             <LinearLayout
41                 android:id="@+id/nav_actions"
42                 android:layout_width="match_parent"
43                 android:layout_height="match_parent"
44                 android:orientation="vertical">
45
46                 <TextView
47                     android:id="@+id/nav_account_summary"
48                     style="@style/nav_button"
49                     android:drawableStart="@drawable/ic_home_black_24dp"
50                     android:onClick="onAccountSummaryClicked"
51                     android:text="@string/account_summary_title" />
52
53                 <TextView
54                     android:id="@+id/nav_latest_transactions"
55                     style="@style/nav_button"
56                     android:drawableStart="@drawable/ic_event_note_black_24dp"
57                     android:onClick="onLatestTransactionsClicked"
58                     android:text="@string/nav_latest_transactions_title" />
59
60                 <TextView
61                     android:id="@+id/textView5"
62                     style="@style/nav_button"
63                     android:drawableStart="@drawable/ic_assignment_black_24dp"
64                     android:text="@string/nav_reports_title" />
65
66             </LinearLayout>
67
68         </LinearLayout>
69     </ScrollView>
70
71     <LinearLayout
72         android:layout_width="match_parent"
73         android:layout_height="96dp"
74         android:layout_alignParentEnd="true"
75         android:layout_alignParentBottom="true"
76         android:layout_marginEnd="0dp"
77         android:divider="@drawable/list_divider"
78         android:elevation="2dp"
79         android:orientation="vertical"
80         android:paddingStart="16dp"
81         android:paddingEnd="16dp"
82         android:showDividers="beginning">
83
84         <TextView
85             android:id="@+id/textView2"
86             style="@style/nav_button"
87             android:layout_weight="1"
88             android:drawableStart="@drawable/ic_settings_black_24dp"
89             android:onClick="nav_settings_clicked"
90             android:text="@string/action_settings" />
91
92         <TextView
93             android:id="@+id/nav_exit"
94             style="@style/nav_button"
95             android:layout_weight="1"
96             android:drawableStart="@drawable/ic_exit_to_app_black_24dp"
97             android:onClick="nav_exit_clicked"
98             android:text="@string/nav_exit_title" />
99
100     </LinearLayout>
101
102 </RelativeLayout>