I want to change the background color of ActionBar to my own. I do this:
strings.xml added the color I need to actBar - actBar
Created the themes.xml file:
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="backGTheme" parent="Theme.AppCompat.Light"> <item name="android:actionBarStyle">@color/actBar</item> <!-- Support library compatibility --> <item name="actionBarStyle">@color/actBar</item> </style> </resources> To the desired Activity I installed this topic
<activity android:name=".MainActivity" android:label="@string/app_name" android:theme="@style/backGTheme"> I go to the application - The background color of the ActionBar not changed + the name of the application is still missing.
What am I doing wrong?