KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a way to show Divider between the Menu Items in ActionBar for HoneyComb+. Some post says that the Divider will be shown only when the menu items has android:showAsAction="withText". I want to show only the Icon not the Text. I successfully shown Divider for Pre-HoneyComb by implementing a Action Bar Compatibility. I dont want to use ActionBarSherlock as given in this post Android actionbar sherlok doesn't show divider because it will be time to change from Action Bar Compatibility to ActionBarSherlock in my all Projects. When i saw the Android Source i found that Divider will be show only when it has text as shown below (from ActionMenuItemView) public boolean needsDividerBefore() { return hasText() && mItemData.getIcon() == null; } public boolean needsDividerAfter() { return hasText(); } Is there a way that I can give my Implementation for ActionMenuItemView for ActionBar where needsDividerBefore() will always give true
Tags (comma-separated)
Save Edits
Cancel