@Override
  public void addTab(TabProxy tabProxy) {
    ActionBar.Tab tab = actionBar.newTab();
    tab.setTabListener(this);

    // Create a view for this tab proxy.
    TiUIActionBarTab actionBarTab = new TiUIActionBarTab(tabProxy, tab);
    tabProxy.setView(actionBarTab);

    // Add the new tab, but don't select it just yet.
    // The selected tab is set once the group is done opening.
    actionBar.addTab(tab, false);
    tabGroupPagerAdapter.notifyDataSetChanged();
    int numTabs = actionBar.getTabCount();
    int offscreen = numTabs > 1 ? numTabs - 1 : 1; // Must be at least 1
    tabGroupViewPager.setOffscreenPageLimit(offscreen);
  }