ActionBarSherlock – 如何设置每个操作栏的图标的填充?

我怎样才能使ActionBarSherlock更接近或远离彼此使操作栏的图标? 像android:layout_marginLeftandroid:paddingRight

如果我只是添加在操作栏上的图标,他们更远离比较下面的Soundhound的屏幕截图:

SoundHound

我的themes.xml

 <style name="Theme.AstraTheme_Purple" parent="@style/Theme.Sherlock"> <item name="actionBarStyle">@style/Widget.AstraTheme_Purple.ActionBar</item> <item name="android:actionBarStyle">@style/Widget.AstraTheme_Purple.ActionBar</item> <item name="actionButtonStyle">@style/Widget.AstraTheme_Purple.ActionButton</item> <item name="android:actionButtonStyle">@style/Widget.AstraTheme_Purple.ActionButton</item> </style> <style name="Widget.AstraTheme_Purple.ActionBar" parent="Widget.Sherlock.ActionBar"> <item name="android:background">@drawable/purple_bar</item> <item name="background">@drawable/purple_bar</item> </style> <style name="Widget.AstraTheme_Purple.ActionButton" parent="Widget.Sherlock.ActionButton"> <item name="android:minWidth">50dip</item> </style> 

 <style name="AppTheme" parent="Theme.Sherlock"> <item name="actionButtonStyle">@style/MyActionButtonStyle</item> <item name="android:actionButtonStyle">@style/MyActionButtonStyle</item> </style> <style name="MyActionButtonStyle" parent="Widget.Sherlock.ActionButton"> <item name="android:minWidth">32dip</item> <item name="android:padding">0dip</item> </style> 

ActionBarbutton的android:minWidth的默认值是56dip 。 不要忘记将@style/AppTheme设置为Activity的主题。