I build an Android app and I am trying to change the title's bar background and text colour.
In AndroidManifest.xml:
<application
...
android:theme="@style/ThemeSelector"
>
In styles.xml:
<style name="ThemeSelector" parent="android:Theme.Light">
<item name="android:windowTitleBackgroundStyle">@style/WindowTitleBackground</item>
</style>
<style name="WindowTitleBackground">
<item name="android:background">@color/titlebackgroundcolor</item>
<item name="android:textColor">@color/titletextcolor</item>
</style>
Using this code, I am managing to change the background colour but not the text colour.
Can you explain why this code does not work?
Thank you