I'm trying to customize the action bar. I've done it before too, but I'm unable to do it now. Not sure where I'm going wrong.
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
<style name="MyActionBar"
parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/actionbar_gradient</item>
</style>
This is the drawable that I'm adding
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#d6ece542"
android:endColor="#fffffdf4"
/>
</shape>
I've also added this inside <application>
tag in my manifest:
android:theme="@style/AppTheme"
But every time I'm just getting the same action-bar (the default of the theme). Can someone tell what's wrong?
Also FYI, my minSdk version=18, and target version=21