我想将拆分添加actionbar
到显示在屏幕顶部的现有actionbar
选项卡中,以便我可以在底部显示这些选项卡
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);
目前,这些选项卡位于顶部。我怎么把它变成一个分裂actionbar
?我想在底部显示这些主要选项卡,在顶部显示另外两个选项卡