use of com.actionbarsherlock.app.ActionBar.Tab in project ActionBarSherlock by JakeWharton.
the class TabNavigation method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
//Used for theme switching in samples
setTheme(SampleList.THEME);
super.onCreate(savedInstanceState);
setContentView(R.layout.tab_navigation);
mSelected = (TextView) findViewById(R.id.text);
getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
for (int i = 1; i <= 3; i++) {
ActionBar.Tab tab = getSupportActionBar().newTab();
tab.setText("Tab " + i);
tab.setTabListener(this);
getSupportActionBar().addTab(tab);
}
}
use of com.actionbarsherlock.app.ActionBar.Tab in project httpclient by pixmob.
the class TabNavigation method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
// Used for theme switching in samples
setTheme(SampleList.THEME);
super.onCreate(savedInstanceState);
setContentView(R.layout.tab_navigation);
mSelected = (TextView) findViewById(R.id.text);
getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
for (int i = 1; i <= 3; i++) {
ActionBar.Tab tab = getSupportActionBar().newTab();
tab.setText("Tab " + i);
tab.setTabListener(this);
getSupportActionBar().addTab(tab);
}
}