Advertisement
Guest User

mainactivity

a guest
Dec 6th, 2015
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.50 KB | None | 0 0
  1. <!-- 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. -->
  2. <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer_layout"
  4.    android:layout_width="match_parent" android:layout_height="match_parent"
  5.    tools:context=".MainActivity">
  6.  
  7.     <!-- As the main content view, the view below consumes the entire
  8.         space available using match_parent in both dimensions. -->
  9.     <FrameLayout android:id="@+id/container" android:layout_width="match_parent"
  10.        android:layout_height="match_parent" />
  11.  
  12.     <!-- android:layout_gravity="start" tells DrawerLayout to treat
  13.         this as a sliding drawer on the left side for left-to-right
  14.         languages and on the right side for right-to-left languages.
  15.         If you're not building against API 17 or higher, use
  16.         android:layout_gravity="left" instead. -->
  17.     <!-- The drawer is given a fixed width in dp and extends the full height of
  18.         the container. -->
  19.     <fragment android:id="@+id/navigation_drawer"
  20.        android:layout_width="@dimen/navigation_drawer_width" android:layout_height="match_parent"
  21.        android:layout_gravity="start"
  22.        android:name="pixelsquad.csgohandbook.NavigationDrawerFragment"
  23.        tools:layout="@layout/fragment_navigation_drawer" />
  24.  
  25. </android.support.v4.widget.DrawerLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement