Android 如何将颜色更改为ActionBar的文本';什么是菜单?

Android 如何将颜色更改为ActionBar的文本';什么是菜单?,android,menuitem,android-theme,android-menu,Android,Menuitem,Android Theme,Android Menu,我想更改操作栏中菜单项文本的颜色。我试图改变主题,但没有任何效果。我正在使用API 19: 这是我的res\values\styles.xml <resources> <!-- Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on newer devic

我想更改操作栏中菜单项文本的颜色。我试图改变主题,但没有任何效果。我正在使用API 19:

这是我的
res\values\styles.xml

<resources>
    <!--
        Base application theme, dependent on API level. This theme is replaced
        by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
    -->
    <style name="AppBaseTheme" parent="Theme.AppCompat.Light">
        <!--
            Theme customizations available in newer API levels can go in
            res/values-vXX/styles.xml, while customizations related to
            backward-compatibility can go here.
        -->
    </style>

    <!-- Application theme. -->
    <style name="AppTheme" parent="AppBaseTheme">
        <!-- All customizations that are NOT specific to a particular API-level can go here. -->
    </style>

    <style name="LoginFormContainer">
        <item name="android:padding">28dp</item>
    </style>
</resources>

28dp
项目还在
res\values-v11\
res\values-v14\


我不知道我是否需要改变主题,或者只是设置一个属性或其他什么,任何帮助我都会非常感激。谢谢大家!

在“自定义文本颜色”部分中选中此项。它说明了在不同的android API级别下必须采用的方法。

最后,我找到了解决问题的方法。这是我的最终代码:

<resources xmlns:android="http://schemas.android.com/apk/res/android">

    <!--
        Base application theme for API 14+. This theme completely replaces
        AppBaseTheme from BOTH res/values/styles.xml and
        res/values-v11/styles.xml on API 14+ devices.
    -->
    <style name="AppBaseTheme" parent="Theme.AppCompat.Light">
        <!-- API 14 theme customizations can go here. -->
        <item name="android:textAppearanceLargePopupMenu" >@style/m_textAppearanceLargePopupMenu</item>
        <item name="android:textAppearanceSmallPopupMenu" >@style/m_textAppearanceSmallPopupMenu</item>
    </style>

    <style name="m_textAppearanceLargePopupMenu" parent="@android:style/TextAppearance.Holo.Widget.PopupMenu.Large">
        <item name="android:textColor">#009ad2</item>
    </style>
    <style name="m_textAppearanceSmallPopupMenu" parent="@android:style/TextAppearance.Holo.Widget.PopupMenu.Small">
        <item name="android:textColor">#009ad2</item>
    </style>

</resources>

@样式/m_文本外观大弹出菜单
@样式/m_文本外观小弹出菜单
#009ad2
#009ad2
这是我的
res\values-v14\
文件代码

我很困惑,我真正想要的是将文本颜色更改为弹出菜单,这对我很有用


谢谢朋友们的帮助

见萨卢多斯德索纳特。