android sherlockactionbar溢出文本颜色

时间:2013-02-14 11:43:45

标签: android overflow actionbarsherlock

我正在使用SherlockActionBar,我正在进行自定义。到目前为止,我已经达到了在操作栏中配置溢出的要点。我想将文字颜色设置为白色,但无论我尝试什么,我都无法改变颜色。你怎么能这样做?

<style name="Theme.Styled" parent="@style/Theme.Sherlock.Light">
        <item name="actionBarStyle">@style/CustomActionBarStyle</item>
        <item name="android:actionBarStyle">@style/CustomActionBarStyle</item>
        <item name="popupMenuStyle">@style/PopupMenu</item>
        <item name="android:popupMenuStyle">@style/PopupMenu</item>
    </style>

    <style name="CustomActionBarStyle" parent="@style/Widget.Sherlock.ActionBar">
        <item name="android:background">@drawable/action_bar</item>
        <item name="background">@drawable/action_bar</item>
        <item name="android:titleTextStyle">@style/CustomActionBarTitleTextColor</item>
        <item name="titleTextStyle">@style/CustomActionBarTitleTextColor</item>
        <item name="actionBarSplitStyle">@style/CustomActionBarSplitStyle</item>
        <item name="backgroundSplit">@drawable/action_bar</item>
        <item name="android:backgroundSplit">@drawable/action_bar</item>
        <item name="actionBarSplitStyle">@style/CustomActionBarSplitStyle</item>
        <item name="android:actionBarSplitStyle">@style/CustomActionBarSplitStyle</item>
        <item name="actionBarDivider">@color/separadorMenu</item>
        <item name="android:actionBarDivider">@color/separadorMenu</item>
        <item name="android:titleTextStyle">@style/CustomActionBarTitleTextColor</item>
    </style>

    <style name="PopupMenu" parent="style/Widget.Sherlock.ListPopupWindow">
        <item name="android:popupBackground">@drawable/action_bar_dropdown</item>
        <item name="android:divider">@color/separadorMenu</item>
        <item name="android:dividerHeight">1dp</item>
    </style>

有关如何将此溢出文本设置为白色的任何提示?

1 个答案:

答案 0 :(得分:0)

尝试:

<style name="ActionBar.YourActionBar" parent="@style/Widget.Sherlock.Light.ActionBar.Solid.Inverse">