如何更改操作栏菜单充气图标颜色

How to change action bar menu inflator icon color

我想更改操作栏中菜单的颜色,因为它非常显眼,但我一直没弄明白。由于操作栏透明度,我想将其更改为与蓝色下划线相同的颜色。

这是我 styles.xml

中的内容
<resources>

    <style name="AppTheme" parent="android:Theme.Holo.Light">
        <item name="android:actionBarStyle">@style/ActionBarTheme</item>
    </style>

    <style name="ActionBarTheme" parent="android:Widget.Holo.Light.ActionBar.Solid.Inverse">
        <item name="android:background">@color/cyan</item>
    </style>

</resources>

在我的 themes.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- the theme applied to the application or activity -->
    <style name="CustomActionBarTheme"
           parent="@android:style/Theme.Holo.Light.DarkActionBar">
        <item name="android:actionBarStyle">@style/MyActionBar</item>
    </style>

    <!-- ActionBar styles -->
    <style name="MyActionBar"
           parent="@android:style/Widget.Holo.Light.ActionBar">
        <item name="android:color">@color/cyan</item>
    </style>
</resources>

我该怎么做?

尝试使用新的 material 设计主题样式!然后你可以改变

  • 原色
  • 二次色
  • 强调色
  • 文本和背景颜色

如指定的那样here