【发布时间】:2015-04-15 10:16:09
【问题描述】:
我正在学习 Android,但不明白如何更改 Google 示例 SlidingTabs 颜色的滑动选项卡中的文本颜色: https://developer.android.com/samples/SlidingTabsColors/project.html
我试着写:
<com.example.android.common.view.SlidingTabLayout
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#ddffffff"
android:textColor="#ffffffff">
但是什么也没发生。 当我使用它时,文本颜色也没有改变:
@android:style/TextAppearance.Holo.Widget.ActionBar.Title
在我的主题中。
【问题讨论】:
标签: android android-tabs textcolor