I am trying to use the ui option: splitActionBarWhenNarrow in my application, but it seems as I am experiencing an unwanted behaviour.
EDIT: Attaching a small gist with some more code.
This is the code in the manifest for the activity:
<activity
android:name="com.example.HomeActivity"
android:uiOptions="splitActionBarWhenNarrow"
android:label="@string/app_name" >
That is the only activity I intent to change the ActionBar style on. In the activity code, I have disabled the actionBar title and icon, so the tabs can merge as the only top action bar.
private void setupActionBar() {
final ActionBar mActionBar = getActionBar();
mActionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
mActionBar.setDisplayShowHomeEnabled(false);
mActionBar.setDisplayShowTitleEnabled(false);
mActionBar.addTab(mActionBar.newTab().setIcon(R.drawable.tab_one).setTabListener(this));
mActionBar.addTab(mActionBar.newTab().setIcon(R.drawable.tab_two).setTabListener(this));
mActionBar.addTab(mActionBar.newTab().setIcon(R.drawable.tab_three).setTabListener(this));
}
This worked well; however, it seems as if the bottom action bar is not going all the way to the bottom of the activity, but rather just below the top action bar.
Here is what it looks like after the code I wrote, How can I get it to go all the way down, like for instance on the Android's stock messaging app?
Edit, reattaching images.
Here's how it currently look with the code above, and here's how I want it to look.
mActionBar.setDisplayShowTitleEnabled(false);, the action bar should locate a section of it on the bottom of the layout.
– daniel_c05 Feb 18 '13 at 13:54