ppamorim

Sliding menu and Nav Drawer

Dec 15th, 2014
559
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.68 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:tools="http://schemas.android.com/tools"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:orientation="vertical"
  7.    android:background="@color/white">
  8.  
  9.     <android.support.v4.widget.DrawerLayout
  10.        android:id="@+id/drawer_left"
  11.        android:layout_width="match_parent"
  12.        android:layout_height="match_parent">
  13.  
  14.         <RelativeLayout
  15.            android:layout_width="match_parent"
  16.            android:layout_height="match_parent">
  17.  
  18.             <FrameLayout
  19.                android:id="@+id/fragment_placeholder"
  20.                android:layout_width="match_parent"
  21.                android:layout_height="match_parent"
  22.                android:clickable="true"/>
  23.  
  24.             <android.support.v4.widget.DrawerLayout
  25.                android:id="@+id/drawer_right"
  26.                android:layout_width="match_parent"
  27.                android:layout_height="match_parent">
  28.  
  29.                 <FrameLayout android:id="@+id/frame_layout_right"
  30.                    android:layout_width="match_parent"
  31.                    android:layout_height="match_parent"
  32.                    android:layout_gravity="end"/>
  33.  
  34.             </android.support.v4.widget.DrawerLayout>
  35.  
  36.         </RelativeLayout>
  37.  
  38.     <!-- Your sliding menu -->
  39.  
  40.         <FrameLayout
  41.            android:id="@+id/frame_layout_left"
  42.            android:layout_width="280dp"
  43.            android:layout_height="match_parent"
  44.            android:layout_gravity="start"/>
  45.  
  46.     </android.support.v4.widget.DrawerLayout>
  47.  
  48. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment