Code example for ActionBar

Methods: setNavigationMode

0
    public void setSubtitle(String title) {
        if (mActionBar != null) mActionBar.setSubtitle(title);
    } 
 
    public void setNavigationMode(int mode) {
        if (mActionBar != null) mActionBar.setNavigationMode(mode);
    } 
 
    public int getHeight() { 
        return mActionBar == null ? 0 : mActionBar.getHeight();
    } 
 
    public boolean setSelectedAction(int type) {
        for (int i = 0, n = sClusterItems.length; i < n; i++) {
            ActionItem item = sClusterItems[i];
            if (item.action == type) {
                mActionBar.setSelectedNavigationItem(i);
                mCurrentIndex = i;
                return true; 
            } 
        }