How to Padding between ActionBar's menu items icon When using the Support Library,

陌路散爱 提交于 2019-12-13 09:14:22

问题


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


回答1:


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>


来源:https://stackoverflow.com/questions/21131814/how-to-padding-between-actionbars-menu-items-icon-when-using-the-support-librar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!