如何在ActionBar的菜单项图标之间进行填充使用支持库时, [英] How to Padding between ActionBar's menu items icon When using the Support Library,

查看:70
本文介绍了如何在ActionBar的菜单项图标之间进行填充使用支持库时,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了操作栏支持库,并且不得不在ActionBar的菜单项图标之间调整Padding.请帮忙.

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

推荐答案

您必须覆盖操作栏的样式.您可以根据需要进行更改.

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>

这篇关于如何在ActionBar的菜单项图标之间进行填充使用支持库时,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆