rockydcoder

Untitled

Feb 10th, 2015
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.82 KB | None | 0 0
  1. <LinearLayout
  2.    xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:tools="http://schemas.android.com/tools"
  4.    android:id="@+id/main_parent_view"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:orientation="vertical"
  8.    android:fitsSystemWindows="true">
  9.  
  10.     <include layout="@layout/custom_toolbar"/>
  11. <!-- A DrawerLayout is intended to be used as the top-level content view using match_parent for both width and height to consume the full space available. -->
  12. <android.support.v4.widget.DrawerLayout
  13.    android:id="@+id/drawer_layout"
  14.    android:layout_width="match_parent" android:layout_height="match_parent"
  15.    tools:context="com.example.priyanshu.mappr.HomePage">
  16.  
  17.     <!-- As the main content view, the view below consumes the entire
  18.         space available using match_parent in both dimensions. -->
  19.     <FrameLayout android:id="@+id/container" android:layout_width="match_parent"
  20.        android:layout_height="match_parent" />
  21.  
  22.     <!-- android:layout_gravity="start" tells DrawerLayout to treat
  23.         this as a sliding drawer on the left side for left-to-right
  24.         languages and on the right side for right-to-left languages.
  25.         If you're not building against API 17 or higher, use
  26.         android:layout_gravity="left" instead. -->
  27.     <!-- The drawer is given a fixed width in dp and extends the full height of
  28.         the container. -->
  29.     <fragment android:id="@+id/navigation_drawer"
  30.        android:layout_width="@dimen/navigation_drawer_width" android:layout_height="match_parent"
  31.        android:layout_gravity="start"
  32.        android:name="com.example.priyanshu.mappr.NavigationDrawerFragment"
  33.        tools:layout="@layout/fragment_navigation_drawer" />
  34.  
  35. </android.support.v4.widget.DrawerLayout>
  36.     </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment