Code example for ActionBar

Methods: setTitle

0
    public void setTitle(String title) {
        if (mActionBar != null) mActionBar.setTitle(title);
    } 
 
    public void setTitle(int titleId) {
        if (mActionBar != null) mActionBar.setTitle(titleId);
    } 
 
    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) {