]> git.ktnx.net Git - mobile-ledger.git/commitdiff
attempt to link the drawer definition from the main activity
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 25 Nov 2018 06:27:52 +0000 (06:27 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 25 Nov 2018 06:27:52 +0000 (06:27 +0000)
app/src/main/res/layout/activity_latest_transactions.xml

index 944f6a7c9fb53ab39c4f1caa32752070186652f3..1c82d93136c179c5b390a57d22ba43ec2ba4fecd 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    xmlns:app="http://schemas.android.com/apk/res-auto"
     xmlns:tools="http://schemas.android.com/tools"
     android:id="@+id/drawer_layout"
     android:layout_width="match_parent"
         android:layout_width="wrap_content"
         android:layout_height="match_parent"
         android:layout_gravity="start"
-        android:fitsSystemWindows="true"
-        app:headerLayout="@layout/nav_header_latest_transactions"
-        app:menu="@menu/activity_latest_transactions_drawer" />
+        android:fitsSystemWindows="true">
+
+        <include
+            layout="@layout/drawer"
+            android:layout_width="match_parent"
+            android:layout_height="match_parent" />
+
+    </android.support.design.widget.NavigationView>
 
 </android.support.v4.widget.DrawerLayout>