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

后端 未结 1 1998
野趣味
野趣味 2020-11-27 18:58

How can I make the icons of the actionbar using ActionBarSherlock closer or further away from each other? Something like android:layout_marginLeft

相关标签:
1条回答
  • 2020-11-27 20:02
    <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>
    

    The default value of android:minWidth for the ActionBar buttons is 56dip. Don't forget to set @style/AppTheme as the Activity's theme.

    0 讨论(0)
提交回复
热议问题