How to set Navigation Drawer to be opened from right to left

In your main layout set your ListView gravity to right: android:layout_gravity=”right” Also in your code : mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, R.drawable.ic_drawer, R.string.drawer_open, R.string.drawer_close) { @Override public boolean onOptionsItemSelected(MenuItem item) { if (item != null && item.getItemId() == android.R.id.home) { if (mDrawerLayout.isDrawerOpen(Gravity.RIGHT)) { mDrawerLayout.closeDrawer(Gravity.RIGHT); } else { mDrawerLayout.openDrawer(Gravity.RIGHT); } } return false; } }; hope … Read more

Android – Is Navigation Drawer from right hand side possible?

The NavigationDrawer can be configured to pull out from the left, right or both. The key is the order of appearance of the drawers in the XML declaration, and the layout_gravity attribute. Here is an example: <android.support.v4.widget.DrawerLayout android:id=”@+id/drawer_layout” android:layout_width=”match_parent” android:layout_height=”match_parent” > <FrameLayout android:id=”@+id/content” android:layout_width=”match_parent” android:layout_height=”match_parent” android:baselineAligned=”false” > </FrameLayout> <!– Left drawer –> <ListView android:id=”@+id/left_drawer” android:layout_width=”match_parent” … Read more

How do I use DrawerLayout to display over the ActionBar/Toolbar and under the status bar?

New functionality in the framework and support libs allow exactly this. There are three ‘pieces of the puzzle’: Using Toolbar so that you can embed your action bar into your view hierarchy. Making DrawerLayout fitsSystemWindows so that it is layed out behind the system bars. Disabling Theme.Material‘s normal status bar coloring so that DrawerLayout can … Read more