有没有一种方法,以减少对动作条的行动项目图标之间的距离? [英] Is there a way to reduce the spacing between the Action Item Icons on Action Bar?

查看:121
本文介绍了有没有一种方法,以减少对动作条的行动项目图标之间的距离?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想减少间距bettween行动项目图标添加到动作条。有没有一种方法,我们可以做到这一点?

I wanted to reduce the spacing bettween Action Item icons added to the ActionBar. Is there a way we can do this?

推荐答案

使用一个定制的Andr​​oid:actionButtonStyle

use a custom android:actionButtonStyle.

<item name="android:actionButtonStyle">@style/ActionButtonStyle</item>

和神奇的是在这里:

<style name="ActionButtonStyle" parent="@android:style/Widget.Holo.Light.ActionButton">
    <item name="android:minWidth">0dip</item>
    <item name="android:paddingLeft">0dip</item>
    <item name="android:paddingRight">0dip</item>                  
</style>

normaly了minWidth设置为56畅游。

normaly minWidth is set to 56 dip.

这篇关于有没有一种方法,以减少对动作条的行动项目图标之间的距离?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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