I want to add split actionbar
to my existing actionbar
that gets displayed at the top of the screen, so that I can display those tabs at the bottom
ActionBar ab;
ab = getSupportActionBar();
ab.setDisplayShowHomeEnabled(false);
ab.setDisplayShowTitleEnabled(false);
ab.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
Tab tab = ab
.newTab()
.setIcon(R.drawable.ic_ab_dialpad)
//.setText("DialPad")
.setTabListener(new MyTabListener<DialerFragment>(this, "DialPad",
DialerFragment.class));
ab.addTab(tab);
tab = ab
.newTab()
.setIcon(R.drawable.ic_ab_history_holo_dark)
//.setText("Recents")
.setTabListener(new MyTabListener<CallLogListFragment>(this, "Recents",
CallLogListFragment.class));
ab.addTab(tab);
/*tab = ab
.newTab()
.setIcon(R.drawable.ic_contacts)
//.setText("Contacts")
.setTabListener(new MyTabListener<ContactListFragment>(this, "Contacts",
ContactListFragment.class));
ab.addTab(tab);*/
/*tab = ab
.newTab()
.setIcon(R.drawable.ic_services)
//.setText("Services")
.setTabListener(new MyTabListener<ServicesFragment>(this, "Services",
ServicesFragment.class));
ab.addTab(tab);*/
tab = ab
.newTab()
.setIcon(R.drawable.ic_voicemail)
//.setText("Settings")
.setTabListener(new MyTabListener<VoiceMailFragment>(this, "Settings",
VoiceMailFragment.class));
ab.addTab(tab);
At present, these tabs are at the top. how do i make this into a split actionbar
?
I want to display these main tabs at the bottom and two other tabs at the top