Search code examples
androiddrop-down-menustylesactionbarsherlock

styling drop down/navigation bar actionbarsherlock font


In the application I have, I would like to have the actionbar drop down's font to be white. Till now I have the following style:

    <style name="Theme.MyApplications" parent="@style/Theme.Sherlock.Light.DarkActionBar">
        <item name="actionBarStyle">@style/ActionBar.Solid</item>
        <item name="android:textSize">18sp</item>
    </style>

    <style name="ActionBar.Title" parent="TextAppearance.Sherlock.Widget.ActionBar.Title">
        <item name="android:textColor">@android:color/white</item>
    </style>

    <style name="ActionBar.SubTitle" parent="TextAppearance.Sherlock.Widget.ActionBar.Subtitle">
        <item name="android:textColor">@android:color/white</item>
    </style>

    <style name="ActionBar.Solid" parent="@style/Widget.Sherlock.Light.ActionBar.Solid">
        <item name="titleTextStyle">@style/ActionBar.Title</item>
        <item name="subtitleTextStyle">@style/ActionBar.SubTitle</item>
    </style>

enter image description here

This style gives me a black colored font in android 3.0 and higher. Can someone please help me configure the font to be white ? The funny thing about this is that the action overflow popup's font appears in white.


Solution

  • for now I just used the simple

    <style name="Theme.MyApplications" parent="@style/Theme.Sherlock">
        <item name="android:textSize">18sp</item>
        <item name="android:textColor">#FFFFFF</item>
    </style>
    

    Its simple but it got the job done. And what got the job done was the change in the style's parent.