I'm trying to change the background and title color of the toolbar on Android 10.
In the xml file, I have the following (in style):
<item name="colorPrimary">@color/C_Yellow</item>
<item name="toolbarStyle">@style/CustomStyle</item>
(in resources):
<style name="CustomStyle" parent="Widget.AppCompat.Toolbar">
<item name="titleTextColor">@color/B_Blue</item>
</style>
It works on Android 4.4; however, on Android 10, it just has a black background with white text.
What should I do in order to change both background and title color on Android 10?