Android Split Action Bar with Action Items on the top and bottom?

Is there a way to specify some action items to the top part of the Split Action Bar while the others go to the bottom? Or is it all or nothing, whereby all the action items go to the bottom part of the split only?


This is currently not possible.

See the response directly from Android developers Reto Meier and Roman Nurik during the Android Developer Office Hours:

To solve this I used a custom view as my action bar:

protected void onCreate(Bundle savedInstanceState) {

    ActionBar actionBar = getActionBar();

    View view = View.inflate(getApplicationContext(), R.layout.actionbar,


and then for the bottom bar I inflated my menu view or whatever you want to appear at bottom:

public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(, menu);
    RelativeLayout relativeLayout = (RelativeLayout) menu.findItem(

    View inflatedView = getLayoutInflater().inflate(
            R.layout.media_bottombar, null);


    return true;

In the Android Manifest, I also include (android:uiOptions="splitActionBarWhenNarrow") like this:

    android:uiOptions="splitActionBarWhenNarrow" > ....

I solved this problem by using a CustomView and adding the menu items, which should display at the top, to this view.

Doubtful. However, you could se a combination of these when creating your menu items in the Action Bar to experiment.


If this option is activated, Android has the option to split the action bar. Whether to split is decided by the system at runtime

You can define that the action bar should be automatically split by the system if not enough space is available you can activate this via the android:uiOptions="SplitActionBarWhenNarrow" parameter in the declaration of your application activity in the AndroidManifest.xml file.

Need Your Help

Cancelling orders on Google Play IAB test purchases after June 20, 2016

android google-play in-app-purchase

I been using Google Play in-app purchases (IAPs) for a long time, but recently (June 20, 2016) They updated the Payments Merchant Center so that test purchases are not shown anymore. I quote a recent

Space between <td>. Why and how can I remove?

html css styles

I create "normal" table and all TD's have "border: 1px solid #e6e6e6" and "margin: 0". TR and TABLE have too "margin/padding: 0" but I still have space between TDs like here: h