]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/layout/coordinator_layout.xml
Initial implementation of the navigation drawer.
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / coordinator_layout.xml
index 4f11f6090cdde9c35a2ef2776f6b5a6e0825ece7..fae9a510ff9ee5b9c63fff31b0c22c9d1dc9f6e7 100644 (file)
 
 <android.support.v4.widget.DrawerLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
     android:id="@+id/drawerLayout"
     android:layout_height="match_parent"
-    android:layout_width="match_parent" >
+    android:layout_width="match_parent">
 
     <!-- The main content view. -->
     <!-- android:fitsSystemWindows="true" moves rootCoordinatorLayout below the system status bar. -->
     </android.support.design.widget.CoordinatorLayout>
 
     <!-- The navigation drawer. -->
-    <ListView
-        android:id="@+id/navigationDrawer"
-        android:layout_width="240dp"
+    <android.support.design.widget.NavigationView
+        android:id="@+id/navigationView"
+        android:layout_width="wrap_content"
         android:layout_height="match_parent"
         android:layout_gravity="start"
-        android:choiceMode="singleChoice"
-        android:background="@color/white"/>
+        app:headerLayout="@layout/navigation_header"
+        app:menu="@menu/menu_navigation"/>
 
 </android.support.v4.widget.DrawerLayout>
\ No newline at end of file