as the title suggest I'm struggling to change the Textcolor of my Apps name. I've tried various things I found online and in stackoverflow but none of them have worked. Im using Kotlin (just in case it matters) and Android Studio with min SDK of 16. Here is my styles.xml: (as you can see I tried 2 different things i found on stackoverflow but they're not doing anything.
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/titleColor</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="android:textColorPrimary">@color/titleColor</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
<item name="android:textColorPrimary">@color/titleColor</item>
</style>
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light">
<item name="android:textColorPrimary">@color/titleColor</item>
</style>
There surely must be an easy way to somehow access the right property. I also tried to change it programmatically but that didnt work either and somehow made my code go red. As you probably can tell im pretty new to Android Development so I wasn't able to use solutions that worked for Apps built in Java, even though i assumed to converter would get it right for me (unfortunately it didn't)
Here is my Manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>