Search in sources :

Example 1 with NavigationDrawer

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();
    }
}
Also used : NavigationDrawer(ingage.ingage20.util.NavigationDrawer) ListView(android.widget.ListView) DrawerLayout(android.support.v4.widget.DrawerLayout)

Aggregations

DrawerLayout (android.support.v4.widget.DrawerLayout)1 ListView (android.widget.ListView)1 NavigationDrawer (ingage.ingage20.util.NavigationDrawer)1