0

我正在使用 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>

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

4

1 回答 1

0

尝试:

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

于 2013-04-23T18:19:56.700 回答