Ejemplo n.º 1
0
  private void createTabHost() {
    mTabHost = (TabHost) findViewById(android.R.id.tabhost);
    mTabHost.setup();

    TabHelper.createTab(this, mTabHost);
    mTabHost.setOnTabChangedListener(
        new OnTabChangeListener() {
          @Override
          public void onTabChanged(String tabId) {
            switchTabHost(tabId);
          }
        });

    switchTabHost(getString(R.string.label_navbar_search));
  }
Ejemplo n.º 2
0
 @Override
 public View createTabContent(String tag) {
   return TabHelper.createTabContent(this, tag);
 }