Code example for ActionBar

Methods: setNavigationMode

0
        mClusterRunner = runner;
    } 
 
    public void hideClusterMenu() { 
        mClusterRunner = null;
        mActionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
    } 
 
    public void showClusterDialog(final ClusterRunner clusterRunner) {
        createDialogData(); 
        final ArrayList<Integer> actions = mActions;
        new AlertDialog.Builder(mContext).setTitle(R.string.group_by).setItems(
                mTitles, new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int which) {
                clusterRunner.doCluster(actions.get(which).intValue());
            } 
        }).create().show(); 
    } 
 
    public void setTitle(String title) {
        if (mActionBar != null) mActionBar.setTitle(title);