]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/drawer.xml
automativ DB revision application during startup
[mobile-ledger.git] / app / src / main / res / layout / drawer.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3     android:layout_width="match_parent"
4     android:layout_height="match_parent">
5
6     <ScrollView
7         android:layout_width="match_parent"
8         android:layout_height="match_parent"
9         android:layout_alignParentStart="true"
10         android:layout_alignParentTop="true">
11
12         <LinearLayout
13             android:layout_width="match_parent"
14             android:layout_height="wrap_content"
15             android:orientation="vertical">
16
17             <include
18                 layout="@layout/nav_header_latest_transactions"
19                 android:layout_width="match_parent"
20                 android:layout_height="wrap_content" />
21
22             <LinearLayout
23                 android:layout_width="match_parent"
24                 android:layout_height="match_parent"
25                 android:orientation="vertical"
26                 android:paddingStart="16dp"
27                 android:paddingEnd="16dp">
28
29                 <TextView
30                     android:id="@+id/nav_account_summary"
31                     style="@style/nav_button"
32                     android:drawableStart="@drawable/ic_home_black_24dp"
33                     android:text="@string/account_summary_title" />
34
35                 <TextView
36                     android:id="@+id/nav_latest_transactions"
37                     style="@style/nav_button"
38                     android:drawableStart="@drawable/ic_event_note_black_24dp"
39                     android:text="@string/nav_latest_transactions_title" />
40
41                 <TextView
42                     android:id="@+id/textView5"
43                     style="@style/nav_button"
44                     android:drawableStart="@drawable/ic_assignment_black_24dp"
45                     android:text="@string/nav_reports_title" />
46
47             </LinearLayout>
48
49         </LinearLayout>
50     </ScrollView>
51
52     <LinearLayout
53         android:layout_width="match_parent"
54         android:layout_height="96dp"
55         android:layout_alignParentEnd="true"
56         android:layout_alignParentBottom="true"
57         android:layout_marginEnd="0dp"
58         android:divider="@drawable/list_divider"
59         android:elevation="2dp"
60         android:orientation="vertical"
61         android:paddingStart="16dp"
62         android:paddingEnd="16dp"
63         android:showDividers="beginning">
64
65         <TextView
66             android:id="@+id/textView2"
67             style="@style/nav_button"
68             android:layout_weight="1"
69             android:drawableStart="@drawable/ic_settings_black_24dp"
70             android:onClick="nav_settings_clicked"
71             android:text="@string/action_settings" />
72
73         <TextView
74             android:id="@+id/nav_exit"
75             style="@style/nav_button"
76             android:layout_weight="1"
77             android:drawableStart="@drawable/ic_exit_to_app_black_24dp"
78             android:onClick="nav_exit_clicked"
79             android:text="@string/nav_exit_title" />
80
81     </LinearLayout>
82
83 </RelativeLayout>