ActionBar 主题修改

下面XML演示如何在v21 appcompact上修改Actionbar title,颜色,字体颜色

<!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">#FF3333</item>
        <!--   darker variant for the status bar and contextual app bars -->
        <item name="colorPrimaryDark">#FF3333</item>
        <!--   theme UI controls like checkboxes and text fields -->
        <item name="colorAccent">#FFF</item>
    </style>


    <!--<style name="pallte_btn">-->
        <!--<item name="android:layout_width">60dp</item>-->
        <!--<item name="android:layout_height">60dp</item>-->
    <!--</style>-->


    <!--<style name="tabStyle">-->
    <!--</style>-->


    <style name="TestTheme" parent="AppTheme">
        <item name="actionBarStyle">@style/actionBarStyle</item>
        <item name="actionMenuTextAppearance">@style/myActionMenuTextAppearance</item>
    </style>


    <style name="myActionMenuTextAppearance" parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Menu">
        <item name="android:textSize">20sp</item>
        <item name="android:shadowRadius">4</item>
        <item name="android:shadowColor">#000</item>
        <item name="android:shadowDx">2</item>
        <item name="android:shadowDy">2</item>
    </style>


    <style name="actionBarStyle" parent="@style/Widget.AppCompat.Light.ActionBar.Solid">
        <item name="titleTextStyle">@style/MyTitleTextStyle</item>
    </style>


    <style name="MyTitleTextStyle" parent="TextAppearance.AppCompat.Widget.ActionBar.Title">
        <item name="android:shadowRadius">4</item>
        <item name="android:shadowColor">#000</item>
        <item name="android:shadowDx">2</item>
        <item name="android:shadowDy">2</item>
    </style>