Created
April 17, 2014 06:47
-
-
Save jamesmontemagno/10958639 to your computer and use it in GitHub Desktop.
Transparent ActionBar
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
<!-- Application theme. --> | |
<style name="MyTheme" parent="@android:style/Theme.Holo"> | |
<item name="android:windowActionBarOverlay">true</item> | |
<item name="android:actionBarStyle">@style/MyTheme.ActionBar</item> | |
<item name="android:windowContentOverlay">@null</item> | |
<item name="android:windowBackground">@color/red_background</item> | |
</style> | |
<style name="MyTheme.ActionBar" parent="android:Widget.Holo.ActionBar"> | |
<item name="android:background">@android:color/transparent</item> | |
<item name="android:backgroundStacked">@android:color/transparent</item> | |
<item name="android:displayOptions">showTitle</item> | |
<item name="android:titleTextStyle">@style/MyTheme.ActionBar.TitleTextStyle</item> | |
</style> | |
<style name="MyTheme.ActionBar.TitleTextStyle" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title"> | |
<item name="android:fontFamily">sans-serif-light</item> | |
<item name="android:textSize">20sp</item> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment