Code example for ActionBar

Methods: setDisplayHomeAsUpEnabled, setDisplayShowTitleEnabled

0
  } 
   
  public void setupHomeAsUp() { 
    if (UIUtils.isHoneycomb()) { 
      ActionBar actionBar = activity.getActionBar();
      actionBar.setDisplayHomeAsUpEnabled(true);
      actionBar.setDisplayShowTitleEnabled(true);
    } 
  } 
   
  public void hideTitle() { 
    if (UIUtils.isHoneycomb()) { 
      ActionBar actionBar = activity.getActionBar();
      actionBar.setDisplayShowTitleEnabled(false);
    } 
  } 
 
  /** 
   * Sets the action bar color to the given color. 
   */ 
  public void setActionBarColor(int color) {