how to remove spacing between ActionBar icons

后端 未结 1 1262
无人共我
无人共我 2021-01-23 22:02

Once again I\'m fighting with ActionBar styles for SDK 14 and above. I\'m trying to remove/reduce spacing between Tab icons since the default spacing d

相关标签:
1条回答
  • 2021-01-23 22:43

    AFAIK, the spacing is because of the padding on the TabView. You should changing the padding on the TabView something like below.

    <style name="ActionBarTabStyle" parent="@android:style/Widget.Holo.ActionBar.TabView">
        <item name="android:background">@android:color/transparent</item>
    
        <item name="android:paddingLeft">2dp</item>
        <item name="android:paddingRight">2dp</item>
    </style>
    

    The default padding on the TabView seems to be 16dp.

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