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