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)); }
@Override public View createTabContent(String tag) { return TabHelper.createTabContent(this, tag); }