]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/drawer.xml
move hook_autocompletion_adapter to MLDB
[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:text="@string/account_summary_title" />
51
52                 <TextView
53                     android:id="@+id/nav_latest_transactions"
54                     style="@style/nav_button"
55                     android:drawableStart="@drawable/ic_event_note_black_24dp"
56                     android:onClick="onLatestTransactionsClicked"
57                     android:text="@string/nav_latest_transactions_title" />
58
59                 <TextView
60                     android:id="@+id/textView5"
61                     style="@style/nav_button"
62                     android:drawableStart="@drawable/ic_assignment_black_24dp"
63                     android:text="@string/nav_reports_title" />
64
65             </LinearLayout>
66
67         </LinearLayout>
68     </ScrollView>
69
70     <LinearLayout
71         android:layout_width="match_parent"
72         android:layout_height="96dp"
73         android:layout_alignParentEnd="true"
74         android:layout_alignParentBottom="true"
75         android:layout_marginEnd="0dp"
76         android:divider="@drawable/list_divider"
77         android:elevation="2dp"
78         android:orientation="vertical"
79         android:paddingStart="16dp"
80         android:paddingEnd="16dp"
81         android:showDividers="beginning">
82
83         <TextView
84             android:id="@+id/textView2"
85             style="@style/nav_button"
86             android:layout_weight="1"
87             android:drawableStart="@drawable/ic_settings_black_24dp"
88             android:onClick="nav_settings_clicked"
89             android:text="@string/action_settings" />
90
91         <TextView
92             android:id="@+id/nav_exit"
93             style="@style/nav_button"
94             android:layout_weight="1"
95             android:drawableStart="@drawable/ic_exit_to_app_black_24dp"
96             android:onClick="nav_exit_clicked"
97             android:text="@string/nav_exit_title" />
98
99     </LinearLayout>
100
101 </RelativeLayout>