Skip to content

Instantly share code, notes, and snippets.

@pablophg
Created January 22, 2015 12:08
Show Gist options
  • Save pablophg/458566ace71b798093d3 to your computer and use it in GitHub Desktop.
Save pablophg/458566ace71b798093d3 to your computer and use it in GitHub Desktop.
Change ActionBar color
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
<!-- ActionBar styles -->
<style name="MyActionBar" parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
<item name="android:background" tools:ignore="NewApi">@android:color/holo_red_dark</item>
<item name="background">@android:color/holo_red_dark</item>
</style>
<style name="CustomActionBarTheme" parent="@style/Theme.AppCompat.Light">
<item name="android:actionBarStyle" tools:ignore="NewApi">@style/MyActionBar</item>
<item name="actionBarStyle">@style/MyActionBar</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment