Skip to content

Instantly share code, notes, and snippets.

@thedoapps
Created December 4, 2014 00:28
Show Gist options
  • Save thedoapps/89b4c224940ca4c68d0b to your computer and use it in GitHub Desktop.
Save thedoapps/89b4c224940ca4c68d0b to your computer and use it in GitHub Desktop.
Custom Action Bar - above v21
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="android:actionBarStyle">@style/MyActionBar</item>
<item name="actionBarStyle">@style/MyActionBar</item>
</style>
<!-- My Action Bar Style -->
<style name="MyActionBar" parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
<item name="background">@color/red_forte</item>
<item name="android:background">@color/red_forte</item>
<item name="android:titleTextStyle">@style/MyActionBarTitleText</item>
</style>
<!-- My ActionBar title text -->
<style name="MyActionBarTitleText"
parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Title">
<item name="android:textColor">@color/white</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment