OK, this question is quick, how can I change the location of the location of the icons in the taskbar in a split action bar?
In my application, they are always placed evenly across the entire width of the bottom action bar, but I would like them to be able to align them on the right and others on the left.
How do I approach this?
Thank you in advance :)
PS: I use ActionBarSherlock if that matters.
Edit:
This is one of the screens of my application:

Here is how I would like now:

And here is how I would like to look with three buttons:

I added elements through the menu.xml files:
<menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/AB_add" android:icon="@android:drawable/ic_menu_add" android:showAsAction="always" android:title="@string/menu_add_item_to_shopping_list"> </item> <item android:id="@+id/AB_delete" android:icon="@android:drawable/ic_menu_delete" android:showAsAction="always" android:title="@string/menu_delete_item_from_shopping_list"> </item> </menu>
And created them through onCreateOptionsMenu ()
public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getSupportMenuInflater(); inflater.inflate(R.menu.activity_recipe_detail, menu); }
source share