Java Code Examples for android.support.v7.app.ActionBar.NAVIGATION_MODE_LIST

The following are Jave code examples for showing how to use NAVIGATION_MODE_LIST of the android.support.v7.app.ActionBar class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: aos-Video   File: BrowserCategoryVideo.java   Source Code and License Vote up 5 votes
@Override
public void onActivityCreated(Bundle bundle) {
    super.onActivityCreated(bundle);
    if (bundle!=null) {
        int navigationMode = bundle.getInt(KEY_ACTIONBAR_NAVIGATION_MODE, ActionBar.NAVIGATION_MODE_STANDARD);
        if (navigationMode==ActionBar.NAVIGATION_MODE_LIST) {
            setupMovieActionBarNavigation(false); // false because the corresponding fragment is already re-created by the framework after rotation
        } else {
            setNavigationMode(navigationMode);
        }
    }
}