Skip to content Skip to sidebar Skip to footer

Padding Menu Items In Action Bar Sherlock

I'm having action bar which Title Name, Search and Action Overflow menu item, though i'm using ActionBarSherlock library for this. I want to remove padding for search and Action Ov

Solution 1:

Check this link:

ActionBarSherlock - How to set the padding of each actionbar's icon?

The idea is to create a new theme which has a parent theme as Theme.Sherlock

and lower actionButtonStyleminWidth attribute

<stylename="MyTheme"parent="Theme.Sherlock"><itemname="actionButtonStyle">@style/MyActionButtonStyle</item></style><stylename="MyActionButtonStyle"parent="Widget.Sherlock.ActionButton"><itemname="android:minWidth">28dip</item></style>

and apply this theme to your Activity in the manifest.

Post a Comment for "Padding Menu Items In Action Bar Sherlock"