由网友(萌翻小宇宙)分享简介:如何更改标签的文本指示灯的颜色?我可以更改使用选择标记涉及过例如的图标。但不能以文字颜色。怎么样? how to change the color of the text indicator of tab? i can change the icon using selector tag refered the ex...
如何更改标签的文本指示灯的颜色?我可以更改使用选择标记涉及过例如的图标。但不能以文字颜色。怎么样?
how to change the color of the text indicator of tab? i can change the icon using selector tag refered the example. but cant to the text color. how?
推荐答案
样式它 在自定义主题的变化
Style it in your custom theme change
<item name="android:tabWidgetStyle">@android:style/Widget.TabWidget</item>
和
<style name="Widget.TabWidget">
<item name="android:textAppearance">@style/TextAppearance.Widget.TabWidget</item>
<item name="android:ellipsize">marquee</item>
<item name="android:singleLine">true</item>
</style>
<style name="TextAppearance.Widget.TabWidget">
<item name="android:textSize">14sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/tab_indicator_text</item>
</style>
相关推荐
最新文章