I have a style file where i am setting some action bar style like this
<style name="ActionBar.Solid.Pro" parent="@style/Widget.Sherlock.ActionBar.Solid">
<item name="background">@color/dialer_color</item>
<item name="backgroundStacked">@color/dialer_color</item>
<item name="backgroundSplit">@color/dialer_color</item>
<item name="android:progressBarStyle">@style/ProgressBar.Pro</item>
</style>
Now i want to change the color of action bar programmatically like this`
getSupportActionBar.setBackgroundDrawable(new ColorDrawable(Color.Red));
But it do not have any effect. Can you please tell me why , where i am doing wrong
Is it possible to change the ActionBar.TabView background programatically ? I am setting my style like this, how can i change the background of this style attribute ?
<style name="ActionBarTabStyle.Pro" parent="@style/Widget.Sherlock.ActionBar.TabView">
<item name="android:background">@color/dialer_color</item>
</style>