1 <?xml version="1.0" encoding="utf-8"?><!--
2 ~ Copyright © 2019 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.
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.
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/>.
18 <com.google.android.material.navigation.NavigationView 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:id="@+id/nav_view"
22 android:layout_width="wrap_content"
23 android:layout_height="match_parent"
24 android:layout_gravity="start"
25 android:fitsSystemWindows="true"
26 android:theme="@style/ThemeOverlay.AppCompat.Light"
27 tools:showIn="@layout/activity_main">
30 <androidx.constraintlayout.widget.ConstraintLayout
31 android:layout_width="match_parent"
32 android:layout_height="match_parent"
33 android:layout_marginBottom="0dp"
34 android:animateLayoutChanges="true"
35 android:orientation="vertical">
38 android:id="@+id/nav_fixed_items"
39 android:layout_width="match_parent"
40 android:layout_height="wrap_content"
41 android:divider="@drawable/list_divider"
42 android:elevation="2dp"
43 android:orientation="vertical"
44 android:showDividers="beginning"
45 android:visibility="gone"
46 app:layout_constraintBottom_toBottomOf="parent">
49 android:id="@+id/textView2"
50 style="@style/nav_button"
51 android:layout_weight="1"
52 android:drawableStart="@drawable/ic_settings_black_24dp"
53 android:text="@string/action_settings" />
58 android:layout_width="0dp"
59 android:layout_height="0dp"
60 app:layout_constraintBottom_toTopOf="@+id/nav_fixed_items"
61 app:layout_constraintEnd_toEndOf="parent"
62 app:layout_constraintLeft_toLeftOf="parent"
63 app:layout_constraintStart_toStartOf="parent"
64 app:layout_constraintTop_toTopOf="parent">
67 android:id="@+id/nav_upper"
68 android:layout_width="match_parent"
69 android:layout_height="wrap_content"
70 android:animateLayoutChanges="true"
71 android:divider="@drawable/list_divider_inside_out"
72 android:orientation="vertical"
73 android:showDividers="beginning"
74 app:layout_constraintBottom_toTopOf="@+id/nav_fixed_items"
75 app:layout_constraintTop_toBottomOf="@+id/nav_header">
77 <include layout="@layout/nav_header_layout" />
80 android:id="@+id/nav_actions"
81 android:layout_width="match_parent"
82 android:layout_height="match_parent"
83 android:orientation="vertical">
86 android:id="@+id/nav_account_summary"
87 style="@style/nav_button"
88 android:drawableStart="@drawable/ic_home_black_24dp"
89 android:onClick="onAccountSummaryClicked"
90 android:text="@string/account_summary_title" />
93 android:id="@+id/nav_latest_transactions"
94 style="@style/nav_button"
95 android:drawableStart="@drawable/ic_event_note_black_24dp"
96 android:onClick="onLatestTransactionsClicked"
97 android:text="@string/nav_transactions_title" />
100 android:id="@+id/textView5"
101 style="@style/nav_button"
102 android:drawableStart="@drawable/ic_assignment_black_24dp"
103 android:text="@string/nav_reports_title"
104 android:visibility="gone" />
107 android:id="@+id/nav_profile_list_head_layout"
108 layout="@layout/nav_profile_list_head" />
111 android:id="@+id/nav_profile_list_container"
112 android:layout_width="match_parent"
113 android:layout_height="wrap_content"
114 android:animateLayoutChanges="true"
115 android:nestedScrollingEnabled="false"
116 android:orientation="vertical">
118 <androidx.recyclerview.widget.RecyclerView
119 android:id="@+id/nav_profile_list"
120 android:layout_width="match_parent"
121 android:layout_height="wrap_content"
122 android:isScrollContainer="false"
123 android:nestedScrollingEnabled="false"
124 android:orientation="vertical"
125 android:paddingStart="0dp">
127 </androidx.recyclerview.widget.RecyclerView>
136 </androidx.constraintlayout.widget.ConstraintLayout>
138 </com.google.android.material.navigation.NavigationView>