更改TabPageIndicator页脚和文本颜色(ViewPagerIndicator) [英] Change TabPageIndicator footer and text colors (ViewPagerIndicator)

查看:226
本文介绍了更改TabPageIndicator页脚和文本颜色(ViewPagerIndicator)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是推动我疯了:我不能为我的生活弄清楚如何改变我的TabPageIndicator的页脚和文本颜色(由杰克·沃顿商学院的ViewPagerIndicator)。我看了看源$ C ​​$ C为样本ViewPagerIndicator应用程序,我找不到地方code不同的默认和病急乱投医的样本。缺省具有默认的蓝色页脚和白色的文字,而造型设计样本有一个红色的页脚和使用灰色的字体。

This is driving me insane: I can't for the life of me figure out how to change the footer and text colors of my TabPageIndicator (from Jake Wharton's ViewPagerIndicator). I looked at the source code for the sample ViewPagerIndicator app and I can't find where the code differs for the "Default" and the "Styled" samples. The Default has the default blue footer and white text, whereas the Styled sample has a red footer and uses a gray font.

我知道这是可能的,但我不能找出如何做到这一点!任何帮助是极大的AP preciated。 :)

I know it's possible, but I can't find out how to do it!! Any help is tremendously appreciated. :)

推荐答案

是的,这是从为主题的清单定义不同:

Yeah, it's different from Manifest definition for theme:

有关默认选项卡:

<activity
            android:name=".SampleTabsDefault"
            android:label="Tabs/Default"
            android:theme="@style/Theme.PageIndicatorDefaults">

和风格的标签:

<activity
            android:name=".SampleTabsStyled"
            android:label="Tabs/Styled"
            android:theme="@style/StyledIndicators">

这篇关于更改TabPageIndicator页脚和文本颜色(ViewPagerIndicator)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆