Is it possible?
I can use fragments, and I can put the tabs on the bottom, but I can't with ActionBar Sherlock. Does anybody have any idea how to do it?
I'm using something like this to use the tabs (they're on the bottom):
tHost = (TabHost) findViewById(R.id.tabhost2);
tHost.setup();
tM = new TabManager(this, tHost, android.R.id.tabcontent);
tM.addTab(tHost.newTabSpec("tabCREATE").setIndicator("Criar"),
Criar.CountingFragment.class, null);
tM.addTab(tHost.newTabSpec("tabCREATE2").setIndicator("Criar2"),
Criar.CountingFragment.class, null);
How can I change it to the ActionBar tab?
I normally use this for the actionbar:
getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
for (int i = 1; i <= 3; i++) {
ActionBar.Tab tab = getSupportActionBar().newTab();
if (i == 1) {
tab.setText("a");
}
else if(i == 2)
tab.setText("b");
else if (i == 3)
tab.setText("c");
tab.setTabListener(this);
getSupportActionBar().addTab(tab);
And it's fine, but I really need to put it on the bottom. Is it possible to set the Tabhost on that second method? And how? I believe that it would solve all my problems.