actionbar tab字体颜色

时间:2015-06-02 17:11:06   收藏:0   阅读:239

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>

 

原文:http://www.cnblogs.com/leiqun123/p/4546766.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!