actionbar tab字体颜色

In fact it is pretty easy.All you should do is defining an attribute like this

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

and then

adding these styles to your theme

<item name="actionBarTabTextStyle">@style/tabtextcolor</item>
<item name="android:actionBarTabTextStyle">@style/tabtextcolor</item>

或者 

<style name="tabtextcolor" parent="@android:style/Widget.Holo.Light.ActionBar.TabText">
<item name="android:textColor">#5E5E5E</item>

 

posted @ 2015-06-02 16:05  裸奔到月球  阅读(238)  评论(0编辑  收藏  举报