Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. if (mDrawerLayout.isDrawerOpen(mRightDrawerView))
  2. mDrawerLayout.closeDrawer(mRightDrawerView);
  3. mDrawerLayout.openDrawer(mLeftDrawerView);
  4.  
  5. <?xml version="1.0" encoding="utf-8"?>
  6. <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7. android:id="@+id/drawer_layout"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent" >
  10.  
  11. <FrameLayout
  12. android:id="@+id/fragment_container"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent" />
  15.  
  16. <include
  17. android:id="@+id/left_drawer"
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. android:layout_gravity="start"
  21. layout="@layout/menu_panel" />
  22.  
  23. <include
  24. android:id="@+id/right_drawer"
  25. android:layout_width="match_parent"
  26. android:layout_height="match_parent"
  27. android:layout_gravity="end"
  28. layout="@layout/search_panel" />
  29.  
  30. </android.support.v4.widget.DrawerLayout>
  31.  
  32. mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
  33. mDrawerLayout.requestDisallowInterceptTouchEvent(true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement