Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (mDrawerLayout.isDrawerOpen(mRightDrawerView))
- mDrawerLayout.closeDrawer(mRightDrawerView);
- mDrawerLayout.openDrawer(mLeftDrawerView);
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/drawer_layout"
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
- <FrameLayout
- android:id="@+id/fragment_container"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
- <include
- android:id="@+id/left_drawer"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_gravity="start"
- layout="@layout/menu_panel" />
- <include
- android:id="@+id/right_drawer"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_gravity="end"
- layout="@layout/search_panel" />
- </android.support.v4.widget.DrawerLayout>
- mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
- mDrawerLayout.requestDisallowInterceptTouchEvent(true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement