I am not sure whether maybe the tab navigation bar is not what I should be using. What I need is not so much tabbing, but opening of new activities when the user selects a section. If I can accomplish that with the tab navigation, how could I do that?
Here is what I have so far from other examples:
ActionBar actionBar = getSupportActionBar();
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
actionBar.setDisplayShowTitleEnabled(true);
Tab tab = actionBar.newTab()
.setText("Home")
.setTabListener(?);
actionBar.addTab(tab);
tab = actionBar.newTab()
.setText("Learn")
.setTabListener(?);
actionBar.addTab(tab);
tab = actionBar.newTab()
.setText("Services")
.setTabListener(?);
actionBar.addTab(tab);
tab = actionBar.newTab()
.setText("Next Steps")
.setTabListener(?);
actionBar.addTab(tab);
Or should I use a list navigation instead?
Thank you Alex