Advertisement
Guest User

Navigation View

a guest
Jul 26th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.92 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v4.widget.DrawerLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    xmlns:tools="http://schemas.android.com/tools"
  6.    android:id="@+id/drawer_layout"
  7.    android:layout_width="match_parent"
  8.    android:layout_height="match_parent"
  9.    tools:context=".MainActivity">
  10.  
  11.     <FrameLayout
  12.        android:id="@+id/fragment_container"
  13.        android:layout_width="match_parent"
  14.        android:layout_height="match_parent"/>
  15.  
  16.     <android.support.design.widget.NavigationView
  17.        android:id="@+id/navigation_view"
  18.        android:layout_width="wrap_content"
  19.        android:layout_height="match_parent"
  20.        android:layout_gravity="start"
  21.        app:headerLayout="@layout/navigation_header"
  22.        app:menu="@menu/navigation_menu"/>
  23.  
  24. </android.support.v4.widget.DrawerLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement