use of ingage.ingage20.util.NavigationDrawer in project iNGAGE by davis123123.
the class MainActivity method setupNavigationMenu.
/**
* Initializes the navigation drawer submit_post_toolbar to allow toggling via the toolbar or swipe from the
* side of the screen.
*/
private void setupNavigationMenu(final Bundle savedInstanceState) {
final DrawerLayout drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
final ListView drawerItems = (ListView) findViewById(R.id.nav_drawer_items);
// Create the navigation drawer.
navigationDrawer = new NavigationDrawer(this, toolbar, drawerLayout, drawerItems, R.id.main_fragment_container, mContext);
if (savedInstanceState == null) {
// Add the home fragment to be displayed initially.
navigationDrawer.showHome();
}
}
Aggregations