the attribute you are looking for is:
<style name="Theme.Example" parent="Theme.Sherlock"> <item name="actionBarDivider">@drawable/small_detail_divider</item> .... <item name="android:actionBarDivider">@drawable/small_detail_divider</item> ... </style>
Just to give you more information.
The ActionBar partition must be set using:
<style name="Theme.Example" parent="Theme.Sherlock"> <item name="actionBarSplitStyle">@style/Widget.Styled.ActionBarSplit</item> <item name="android:actionBarSplitStyle">@style/Widget.Styled.ActionBarSplit</item> ...
Then specify your style for the split action bar.
Thrid Question: Adding to the order:
When adding a menu item, pragmatically use: Menu
menu.add (0, R.id.menu_new_ab_item, 0, "Item");
The order determines how you order your menu items.
You can be more specific in your menu.xml files android:orderInCategory="1..n" can be any int. I usually start with 10 or so, so I can inflate elements in front of standard elements.
Chris.jenkins
source share