Showing posts from May, 2014

Simple Navigation Drawer example in android

Consider using simple NavigationView instead of this old Navigation drawer, which based on Material design and much simpler and very flexible than this Navigation drawer.

This NavigationDrawer example is developed by using appcompat library project in eclipse kepler.


import; import; import; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import; public class MainActivity extends ActionBarActivity implements NavigationDrawerFragment.NavigationDrawerCallbacks { /** * Fragment managing the behaviors, interactions and presentation of the * navigation drawer. */ private NavigationDrawerFragment mNavigationDrawerFragment; /** * Used to store the last screen title. For use in * {@link #restoreActionBar()}. */ private CharSequence mTitle; @Override protected void…