Created
December 4, 2014 00:28
-
-
Save thedoapps/89b4c224940ca4c68d0b to your computer and use it in GitHub Desktop.
Custom Action Bar - above v21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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