Code example for ActionBar.Tab

Methods: getTag

0
    onTabSelected(tab, ft);
  } 
 
  @Override 
  public void onTabSelected(Tab tab, FragmentTransaction ft) {
    switch ((Tabs)tab.getTag()) {
      case TAB_SIMPLE:
        showSimple(ft);
        break; 
      case TAB_CUSTOM_TASK:
        showCustom(ft);
        break; 
    } 
  } 
 
  @Override 
  public void onTabUnselected(Tab tab, FragmentTransaction ft) {
    // no-op 
  } 
 
  private void showSimple(FragmentTransaction ft) {