我构建了一个
Android应用程序,我正在尝试更改标题的栏背景和文本颜色.
在AndroidManifest.xml中:
...
android:theme="@style/ThemeSelector"
>
在styles.xml中:
@style/WindowTitleBackground
@color/titlebackgroundcolor
@color/titletextcolor
使用此代码,我设法更改背景颜色,但不更改文本颜色.
你能解释为什么这段代码不起作用吗?
谢谢
最佳答案
@style/WindowTitleBackground
@style/CustomWindowTitle
@color/titlebackgroundcolor
@style/CustomWindowTitleText
@color/titletextcolor
true
@style/CustomWindowTitleText
#BB000000
2.75