Changing the title color of my application

0

I've tried several different codes to change the title color that is in the application's actionbar, but nothing, I think it's simple, but I'm not able to know how. use the "Theme.AppCompat.Light" theme created by the Action Bar Style Generator.

    
asked by anonymous 19.10.2014 / 01:07

1 answer

1

Resolved:)

<style name="MeuAppActionBarTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
        <item name="actionBarStyle">@style/MeuAppActionBar</item>                
    </style>

    <style name="MeuAppActionBar" parent="@style/Widget.AppCompat.ActionBar">
        <item name="titleTextStyle">@style/MeuApp.TitleTextStyle</item>
        <item name="subtitleTextStyle">@style/MeuApp.SubTitleTextStyle</item>               
        <item name="background">@color/azul_escuro</item>                
    </style>

    <style name="MeuApp.TitleTextStyle" parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Title">
        <item name="android:textColor">@color/branco</item>
        <item name="android:textStyle">normal</item>
    </style>    

    <style name="MeuApp.SubTitleTextStyle" parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Subtitle">
        <item name="android:textColor">@color/branco</item>
        <item name="android:textStyle">normal</item>
    </style>
    
19.10.2014 / 03:46