How to Padding between ActionBar's menu items

2019-09-22 14:40发布

I used the action bar support library and have to adjust Padding between ActionBar's menu items icon. Please help.

1条回答
混吃等死
2楼-- · 2019-09-22 15:07

You have to override the style of the action bar. You can change as your requirement.

<style name="CustomActionBarTheme"
   parent="@android:style/Theme.Holo.Light.DarkActionBar">
    <item name="android:actionBarTabTextStyle">@style/TabTextStyle</item>
    <item name="actionBarTabTextStyle">@style/TabTextStyle</item>
    <item name="android:scrollHorizontally">false</item>
    <item name="android:paddingLeft">0dp</item>
    <item name="android:paddingRight">0dp</item>
</style>
查看更多
登录 后发表回答