I am trying to add an icon to my ActionBar for the whole Appliction.
I reference the CustomActionBarTheme in my Appication Tag in the manifest.
My ActionBars are turning Blue but there is no Icon.
Anybody have any ideas why?
Thanks
[Duplicate] show icon in actionbar/toolbar with AppCompat-v7 21
<application
android:name=".NfcScannerApplication"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/CustomActionBarTheme"
android:debuggable = "true" >
.
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<!-- the theme applied to the application or activity -->
<style name="CustomActionBarTheme"
parent="@style/Theme.AppCompat.Light">
<item name="android:actionBarStyle">@style/MyActionBar</item>
<!-- Support library compatibility -->
<item name="actionBarStyle">@style/MyActionBar</item>
</style>
<!-- ActionBar styles -->
<style name="MyActionBar"
parent="@style/Widget.AppCompat.Light.ActionBar">
<item name="android:background">@color/cf_blue</item>
<item name="android:icon">@drawable/ic_launcher</item>
<!-- Support library compatibility -->
<item name="background">@color/cf_blue</item>
<item name="icon">@drawable/ic_launcher</item>
</style>
</resources>